DateTimeValidator constructor

DateTimeValidator({
  1. String locale = 'pt_br',
  2. String dateFormat = 'dd/MM/yyyy HH:mm',
  3. String mask = 'B#/D#/#### A#:C#',
})

Implementation

DateTimeValidator({
  this.locale = 'pt_br',
  this.dateFormat = 'dd/MM/yyyy HH:mm',
  String mask = 'B#/D#/#### A#:C#',
}) : super(
        <TextInputFormatter>[
          MaskTextInputFormatter(
            mask: mask,
            filter: <String, RegExp>{
              'A': RegExp('[0-2]'),
              'B': RegExp('[0-3]'),
              'C': RegExp('[0-5]'),
              'D': RegExp('[0-1]'),
              '#': RegExp('[0-9]'),
            },
          ),
        ],
      );