TextInputStyle.parse constructor
- int value
Parse a TextInputComponent from an int.
The value
must beb a valid text input style.
Implementation
factory TextInputStyle.parse(int value) => TextInputStyle.values.firstWhere(
(style) => style.value == value,
orElse: () => throw FormatException('Unknown text input style', value),
);