of static method
注意 of 方法获取的是 TFormState
Implementation
static TFormState of(BuildContext context) {
final _TFormScope scope =
context.dependOnInheritedWidgetOfExactType<_TFormScope>()!;
return scope.state;
}
注意 of 方法获取的是 TFormState
static TFormState of(BuildContext context) {
final _TFormScope scope =
context.dependOnInheritedWidgetOfExactType<_TFormScope>()!;
return scope.state;
}