DateTimeValidator constructor
DateTimeValidator({})
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]'),
},
),
],
);