of static method

TFormState of(
  1. BuildContext context
)

注意 of 方法获取的是 TFormState

Implementation

static TFormState of(BuildContext context) {
  final _TFormScope scope =
      context.dependOnInheritedWidgetOfExactType<_TFormScope>()!;
  return scope.state;
}