FormCast class

FormCast is a class that helps in managing form casts

Constructors

FormCast({String? type = "capitalize-sentences"})
FormCast.capitalizeSentences()
Cast to capitalize sentences
FormCast.capitalizeWords()
Cast to capitalize words
FormCast.checkbox({MouseCursor? mouseCursor, Color? activeColor, Color? fillColor, Color? checkColor, Color? hoverColor, Color? overlayColor, double? splashRadius, MaterialTapTargetSize? materialTapTargetSize, VisualDensity? visualDensity, FocusNode? focusNode, bool autofocus = false, ShapeBorder? shape, BorderSide? side, bool isError = false, bool? enabled, Color? tileColor, Widget? title, Widget? subtitle, bool isThreeLine = false, bool? dense, Widget? secondary, bool selected = false, ListTileControlAffinity controlAffinity = ListTileControlAffinity.platform, EdgeInsetsGeometry? contentPadding, bool tristate = false, ShapeBorder? checkboxShape, Color? selectedTileColor, ValueChanged<bool?>? onFocusChange, bool? enableFeedback, String? checkboxSemanticLabel})
Cast to a checkbox
FormCast.currency(String currency)
Cast to a currency
FormCast.datetime({TextStyle? style, VoidCallback? onTap, FocusNode? focusNode, bool autofocus = false, bool? enableFeedback, EdgeInsetsGeometry? padding, bool hideDefaultSuffixIcon = false, DateTime? initialPickerDateTime, CupertinoDatePickerOptions? cupertinoDatePickerOptions, MaterialDatePickerOptions? materialDatePickerOptions, MaterialTimePickerOptions? materialTimePickerOptions, InputDecoration? decoration, DateFormat? dateFormat, DateTime? firstDate, DateTime? lastDate, DateTimeFieldPickerMode mode = DateTimeFieldPickerMode.dateAndTime, DateTimeFieldPickerPlatform pickerPlatform = DateTimeFieldPickerPlatform.adaptive})
Cast to datetime
FormCast.email()
Cast to an email
FormCast.lowercase()
Cast to uppercase
FormCast.number({bool decimal = false})
Cast to a number
FormCast.password({bool viewable = false})
Cast to a password
FormCast.phoneNumber()
Cast to phone number
FormCast.picker({required List options})
Cast to a picker
FormCast.text()
Cast to text
FormCast.textArea({TextAreaSize textAreaSize = TextAreaSize.sm})
Cast to a textarea
FormCast.uppercase()
Cast to uppercase
FormCast.url()
Cast to a url

Properties

hashCode int
The hash code for this object.
no setterinherited
metaData ↔ dynamic
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited