createModel<T extends FlutterFlowModel<Widget> > function
Implementation
T createModel<T extends FlutterFlowModel>(
BuildContext context,
T Function() defaultBuilder,
) {
final model = context.read<T?>() ?? defaultBuilder();
model._init(context);
return model;
}