AnimatedRail constructor
const
AnimatedRail({
- Key? key,
- double width = 100,
- double maxWidth = 350,
- TextDirection? direction,
- List<
RailItem> items = const [], - int? selectedIndex,
- Color? background,
- bool expand = true,
- bool isStatic = false,
- ItemBuilder? builder,
- Size? cursorSize,
- RailTileConfig? railTileConfig,
- 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);