rawValue property

  1. @override
Map<String, Object?> rawValue
override

Gets the value of the FormGroup, including any disabled controls.

Retrieves all values regardless of disabled status.

Implementation

@override
Map<String, Object?> get rawValue =>
    _controls.map<String, Object?>((key, control) {
      if (control is FormControlCollection<dynamic>) {
        return MapEntry(key, control.rawValue);
      }

      return MapEntry(key, control.value);
    });