clear method
- @override
- @Deprecated('FormData should be immutable, in the future this will thrown an error')
override
Removes all entries from the map.
After this, the map is empty.
final planets = <int, String>{1: 'Mercury', 2: 'Venus', 3: 'Earth'};
planets.clear(); // {}
Implementation
@override
@Deprecated(
'FormData should be immutable, in the future this will thrown an error',
)
void clear() => _fields.clear();