field<T extends FormeFieldState> method
get field by name
throw an exception if field not found
Implementation
T field<T extends FormeFieldState>(String name) {
return maybeField<T>(name) ??
(throw Exception('no field can be found by name :$name'));
}