NsgDatePicker constructor

const NsgDatePicker({
  1. Key? key,
  2. required DateTime initialTime,
  3. required dynamic onClose(
    1. DateTime endDate
    ),
  4. DateTime? firstDateTime,
  5. DateTime? lastDateTime,
  6. String? label = '',
  7. Widget? labelWidget,
  8. TextAlign textAlign = TextAlign.center,
  9. bool? disabled = false,
  10. EdgeInsets margin = const EdgeInsets.symmetric(horizontal: 5, vertical: 5),
  11. bool simple = false,
})

Implementation

const NsgDatePicker({
  Key? key,
  required this.initialTime,
  // this.textFormFieldType = TextFormFieldType.underlineInputBorder,
  required this.onClose,
  this.firstDateTime,
  this.lastDateTime,
  this.label = '',
  this.labelWidget,
  this.textAlign = TextAlign.center,
  this.disabled = false,
  this.margin = const EdgeInsets.symmetric(horizontal: 5, vertical: 5),
  this.simple = false,
  // this.outlineBorderColor,
  // this.borderRadius,
  // this.fieldColor,
  // this.lableWidget,
  // this.textStyle,
}) : super(key: key);