FlutterAnalogClockPainter constructor
FlutterAnalogClockPainter(
- DateTime _datetime, {
- Color dialPlateColor = Colors.transparent,
- Color hourHandColor = Colors.black,
- Color minuteHandColor = Colors.black,
- Color secondHandColor = Colors.black,
- Color numberColor = Colors.black,
- Color borderColor = Colors.black,
- Color tickColor = Colors.black,
- Color centerPointColor = Colors.black,
- bool showBorder = true,
- bool showTicks = true,
- bool showMinuteHand = true,
- bool showSecondHand = true,
- bool showNumber = true,
- double hourNumberScale = 1.0,
- List<
String> hourNumbers = defaultHourNumbers, - double? borderWidth,
Implementation
FlutterAnalogClockPainter(
this._datetime, {
this.dialPlateColor = Colors.transparent,
this.hourHandColor = Colors.black,
this.minuteHandColor = Colors.black,
this.secondHandColor = Colors.black,
this.numberColor = Colors.black,
this.borderColor = Colors.black,
this.tickColor = Colors.black,
this.centerPointColor = Colors.black,
this.showBorder = true,
this.showTicks = true,
this.showMinuteHand = true,
this.showSecondHand = true,
this.showNumber = true,
this.hourNumberScale = 1.0,
this.hourNumbers = defaultHourNumbers,
double? borderWidth,
}) : assert(hourNumbers.length == 12),
_borderWidth = borderWidth;