NsgTimePicker constructor

const NsgTimePicker({
  1. Key? key,
  2. required Duration initialTime,
  3. required dynamic onClose(
    1. Duration endDate
    ),
  4. bool validator(
    1. Duration pickedTime
    )?,
  5. dynamic onValidTime(
    1. Duration endDate
    )?,
  6. String? label = '',
  7. TextAlign? textAlign = TextAlign.center,
  8. bool disabled = false,
  9. EdgeInsets margin = const EdgeInsets.symmetric(horizontal: 5, vertical: 5),
  10. bool simple = false,
  11. 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);