DeviceSimulator constructor

DeviceSimulator({
  1. required WidgetBuilder builder,
  2. bool enable = true,
  3. Brightness brightness = Brightness.light,
  4. Color iOSMultitaskBarColor = Colors.grey,
  5. bool androidShowNavigationBar = true,
  6. Color androidStatusBarBackgroundColor = Colors.black26,
  7. Orientation? orientation,
  8. int initialDeviceIndex = 0,
  9. TargetPlatform initialPlatform = TargetPlatform.android,
  10. Color? backgroundColor,
  11. bool showBottomBar = true,
})

Creates a new DeviceSimulator.

Implementation

DeviceSimulator({
  // Widget? child,
  required this.builder,
  this.enable = true,
  this.brightness = Brightness.light,
  this.iOSMultitaskBarColor = Colors.grey,
  this.androidShowNavigationBar = true,
  this.androidStatusBarBackgroundColor = Colors.black26,
  this.orientation,
  this.initialDeviceIndex = 0,
  this.initialPlatform = TargetPlatform.android,
  Color? backgroundColor,
  this.showBottomBar = true,
}) : this.backgroundColor = backgroundColor ?? Colors.grey.shade900;