ViewProvider constructor
ViewProvider({
- FlutterView? view,
- required FutureOr<
Widget> builder(), - required ViewConfiguration configurationFactory(
- MediaQueryData mediaQuery
- TextDirection textDirection = TextDirection.ltr,
- String? id,
- bool cacheable = false,
- Function? onError,
Implementation
ViewProvider(
{FlutterView? view,
required FutureOr<Widget> Function() builder,
required ViewConfiguration Function(MediaQueryData mediaQuery)
configurationFactory,
this.textDirection = TextDirection.ltr,
this.id,
this.cacheable = false,
this.onError})
: _view = view ?? WidgetsBinding.instance.window,
_builder = builder,
_configurationFactory = configurationFactory;