FormCast.mask constructor

FormCast.mask({
  1. Widget? prefixIcon,
  2. bool clearable = false,
  3. Widget? clearIcon,
  4. required String? mask,
  5. String? match = r'[\w\d]',
  6. bool? maskReturnValue = false,
})

Cast to text

Implementation

FormCast.mask({
  Widget? prefixIcon,
  bool clearable = false,
  Widget? clearIcon,
  required String? mask,
  String? match = r'[\w\d]',
  bool? maskReturnValue = false,
}) {
  type = "mask";

  metaData = {};
  metaData['prefixIcon'] = prefixIcon;
  metaData['clearable'] = clearable;
  metaData['clearIcon'] = clearIcon;
  metaData['mask'] = mask;
  metaData['match'] = match;
  metaData['maskedReturnValue'] = maskReturnValue;
}