Last updated:
0 purchases
masked controller
masked_controller #
A controller to insert mask to textfield.
Install #
Follow this guide
Usage #
Import the library
import 'import 'package:masked_controller/masked_controller.dart';';
copied to clipboard
and the mask:
import 'package:masked_controller/mask.dart';
copied to clipboard
Create the Controller
final MaskedController _controller = MaskedController(mask: Mask(mask: 'NNN.NNN.NNN-NN'));
copied to clipboard
Get unmasked value #
To get the unsmaked value from controller, use the unmaskedText property:
final String val = controller.unmaskedText;
copied to clipboard
Inspired by:
https://github.com/benhurott/flutter-masked-text
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.