TimeRange constructor
TimeRange({
- Key? key,
- required int timeBlock,
- required void onRangeCompleted(
- TimeRangeResult? range
- required TimeOfDay firstTime,
- required TimeOfDay lastTime,
- int timeStep = 60,
- Widget? fromTitle,
- Widget? toTitle,
- double titlePadding = 0,
- TimeRangeResult? initialRange,
- Color? borderColor,
- Color? activeBorderColor,
- Color? backgroundColor,
- Color? activeBackgroundColor,
- TextStyle? textStyle,
- TextStyle? activeTextStyle,
Implementation
TimeRange({
Key? key,
required this.timeBlock,
required this.onRangeCompleted,
required this.firstTime,
required this.lastTime,
this.timeStep = 60,
this.fromTitle,
this.toTitle,
this.titlePadding = 0,
this.initialRange,
this.borderColor,
this.activeBorderColor,
this.backgroundColor,
this.activeBackgroundColor,
this.textStyle,
this.activeTextStyle,
}) : assert(lastTime.after(firstTime), 'lastTime not can be before firstTime'),
super(key: key);