AnimatedRail constructor

const AnimatedRail({
  1. Key? key,
  2. double width = 100,
  3. double maxWidth = 350,
  4. TextDirection? direction,
  5. List<RailItem> items = const [],
  6. int? selectedIndex,
  7. Color? background,
  8. bool expand = true,
  9. bool isStatic = false,
  10. ItemBuilder? builder,
  11. Size? cursorSize,
  12. RailTileConfig? railTileConfig,
  13. CursorActionTrigger cursorActionType = CursorActionTrigger.drag,
})

Implementation

const AnimatedRail({
  Key? key,
  this.width = 100,
  this.maxWidth = 350,
  this.direction,
  this.items = const [],
  this.selectedIndex,
  this.background,
  this.expand = true,
  this.isStatic = false,
  this.builder,
  this.cursorSize,
  this.railTileConfig,
  this.cursorActionType = CursorActionTrigger.drag,
})  : assert(!expand || maxWidth > width),
      super(key: key);