error property

  1. @override
String? get error
override

Returns the first validation error found among the controls.

Implementation

@override
String? get error => controls.values
    .map((c) => c.error)
    .firstWhere((e) => e != null, orElse: () => null);