createAppWidgetWrapper method

  1. @override
Widget createAppWidgetWrapper(
  1. Widget child
)
override

Wraps the Widget that will ultimately be passed to Flutter's runApp function. This is used when the plugin needs to wrap App.createAppWidget to add widgets to the App's widget tree.

Implementation

@override
Widget createAppWidgetWrapper(Widget child) {
  return Provider<DeviceInfoPlugin>.value(
    value: this,
    child: child,
  );
}