Skip to content

Instantly share code, notes, and snippets.

@Ayush783
Last active November 11, 2020 12:29
Show Gist options
  • Save Ayush783/587766592989b7b8f9198d4c81fff4e6 to your computer and use it in GitHub Desktop.
Save Ayush783/587766592989b7b8f9198d4c81fff4e6 to your computer and use it in GitHub Desktop.
...
//Initial State
class RecogniseTextInitial extends RecogniseTextState {}
//state emitted when text is being recognised
class RecognisingText extends RecogniseTextState {}
//final state when text has been recognised successfully
class RecognisedText extends RecogniseTextState {
final String text, language, languageCode;
RecognisedText(
this.text,
this.language,
this.languageCode,
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment