DurationEditingController constructor

DurationEditingController({
  1. Duration? duration,
  2. String yearSuffix = 'y',
  3. String monthSuffix = 'M',
  4. String daySuffix = 'd',
  5. String hourSuffix = 'h',
  6. String minuteSuffix = 'm',
  7. String secondSuffix = 's',
  8. String millisecondSuffix = 'ms',
})

Implementation

DurationEditingController({
  Duration? duration,
  String yearSuffix = 'y',
  String monthSuffix = 'M',
  String daySuffix = 'd',
  String hourSuffix = 'h',
  String minuteSuffix = 'm',
  String secondSuffix = 's',
  String millisecondSuffix = 'ms',
}) : super(
        validator: DurationValidator(
          yearSuffix: yearSuffix,
          monthSuffix: monthSuffix,
          daySuffix: daySuffix,
          hourSuffix: hourSuffix,
          minuteSuffix: minuteSuffix,
          secondSuffix: secondSuffix,
          millisecondSuffix: millisecondSuffix,
        ),
        value: duration,
      );