init static method

dynamic init({
  1. int? desktopBreakpoint,
  2. GlobalKey<NavigatorState>? navigatorKey,
  3. List<Platforms>? supportedPlatforms,
})

Implementation

static init({
  int? desktopBreakpoint,
  GlobalKey<NavigatorState>? navigatorKey,
  List<Platforms>? supportedPlatforms,
}) {
  _instance = Platform._(
    desktopBreakpoint:
        desktopBreakpoint ?? defaultDesktopFormFactorBreakpoint,
    navigatorKey: navigatorKey,
    supportedPlatforms: supportedPlatforms ?? Platforms.values,
  );
}