RegexValidator.fromMap constructor

RegexValidator.fromMap(
  1. Map<String, dynamic> map
)

Creates a RegexValidator from a map representation.

Implementation

RegexValidator.fromMap(Map<String, dynamic> map)
    : pattern = RegExp(
        map['pattern'] as String,
        caseSensitive: map['caseSensitive'] as bool? ?? true,
        multiLine: map['multiLine'] as bool? ?? false,
      ),
      customDescription = map['description'] as String?;