StoryBoard constructor

const StoryBoard({
  1. Key? key,
  2. List<Widget>? children,
  3. List<CustomLane>? customLanes,
  4. List<CustomScreen>? sizedChildren,
  5. bool showAppBar = false,
  6. Size? childSize,
  7. Offset initialOffset = Offset.zero,
  8. double initialScale = _STARTSCALE,
  9. PreferredSizeWidget? customAppBar,
  10. int? crossAxisCount,
  11. String title = _kTitle,
  12. LaneBuilder? laneBuilder,
  13. String? childrenLabel = 'Children',
  14. String? sizedChildrenLabel = 'Sized Children',
  15. Orientation? orientation,
  16. DeviceInfo? androidDevice,
  17. DeviceInfo? cupertinoDevice,
  18. DeviceFrameStyle? deviceFrameStyle,
})

Implementation

const StoryBoard({
  Key? key,
  this.children,
  this.customLanes,
  this.sizedChildren,
  bool showAppBar = false,
  Size? childSize,
  this.initialOffset = Offset.zero,
  this.initialScale = _STARTSCALE,
  this.customAppBar,
  this.crossAxisCount,
  this.title = _kTitle,
  this.laneBuilder,
  this.childrenLabel = 'Children',
  this.sizedChildrenLabel = 'Sized Children',
  this.orientation,
  this.androidDevice,
  this.cupertinoDevice,
  this.deviceFrameStyle,
})  : _materialApp = null,
      _widgetsApp = null,
      _cupertinoApp = null,
      _widgets = true,
      screenSize = childSize,
      customRoutes = null,
      hideAppBar = !showAppBar,
      enabled = true,
      assert(
          children != null || customLanes != null || sizedChildren != null),
      super(key: key);