masked_controller 1.0.1 masked_controller: ^1.0.1 copied to clipboard
A controller to insert mask to textfield.
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';';
and the mask:
import 'package:masked_controller/mask.dart';
Create the Controller
final MaskedController _controller = MaskedController(mask: Mask(mask: 'NNN.NNN.NNN-NN'));
Get unmasked value #
To get the unsmaked value from controller, use the unmaskedText
property:
final String val = controller.unmaskedText;
Inspired by: https://github.com/benhurott/flutter-masked-text