defaultSpellCheckMenuBuilder function

Widget defaultSpellCheckMenuBuilder(
  1. BuildContext context,
  2. EditorState editorState
)

Implementation

Widget defaultSpellCheckMenuBuilder(
    BuildContext context, EditorState editorState) {
  switch (defaultTargetPlatform) {
    case TargetPlatform.iOS:
      return FleatherCupertinoSpellCheckSuggestionsToolbar.editor(
          editorState: editorState);
    case TargetPlatform.android:
      return FleatherSpellCheckSuggestionsToolbar.editor(
          editorState: editorState);
    case TargetPlatform.macOS:
    case TargetPlatform.linux:
    case TargetPlatform.windows:
    case TargetPlatform.fuchsia:
    default:
      throw UnsupportedError('Only iOS and Android support spell check');
  }
}