Skip to content

Instantly share code, notes, and snippets.

@juliuscanute
Created December 14, 2019 06:02
Show Gist options
  • Select an option

  • Save juliuscanute/8cd21142a705e51f6872f05584a1456f to your computer and use it in GitHub Desktop.

Select an option

Save juliuscanute/8cd21142a705e51f6872f05584a1456f to your computer and use it in GitHub Desktop.
Pass data actions
class NavigateToCreateEmotion {
final String emoji;
final String emotion;
const NavigateToCreateEmotion({this.emoji, this.emotion});
}
class SaveEmotion {
final String emotion;
final String emotionDescription;
const SaveEmotion({this.emotion, this.emotionDescription});
}
class LoadedEmotions {
final List<SavedDetail> details;
const LoadedEmotions({this.details});
}
class ViewEmotion {
final int index;
const ViewEmotion({this.index});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment