read static method

TextEditorData read(
  1. BuildContext context
)

Implementation

static TextEditorData read(BuildContext context) {
  final TextEditorData? result =
      context.findAncestorWidgetOfExactType<TextEditorData>();
  assert(result != null, 'No TextEditorData found in context');

  return result!;
}