NsgTimePicker constructor
const
NsgTimePicker({
- Key? key,
- required Duration initialTime,
- required dynamic onClose(
- Duration endDate
- bool validator(
- Duration pickedTime
- dynamic onValidTime(
- Duration endDate
- String? label = '',
- TextAlign? textAlign = TextAlign.center,
- bool disabled = false,
- EdgeInsets margin = const EdgeInsets.symmetric(horizontal: 5, vertical: 5),
- bool simple = false,
- DateTime? dateForTime,
Implementation
const NsgTimePicker({
Key? key,
required this.initialTime,
// this.textFormFieldType = TextFormFieldType.underlineInputBorder,
required this.onClose,
this.validator,
this.onValidTime,
this.label = '',
this.textAlign = TextAlign.center,
this.disabled = false,
this.margin = const EdgeInsets.symmetric(horizontal: 5, vertical: 5),
this.simple = false,
this.dateForTime,
// this.outlineBorderColor,
// this.borderRadius,
// this.fieldColor,
// this.lableWidget,
// this.textStyle,
}) : super(key: key);