ViewProvider constructor

ViewProvider({
  1. FlutterView? view,
  2. required FutureOr<Widget> builder(),
  3. required ViewConfiguration configurationFactory(
    1. MediaQueryData mediaQuery
    ),
  4. TextDirection textDirection = TextDirection.ltr,
  5. String? id,
  6. bool cacheable = false,
  7. 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;