data method

dynamic data({
  1. String? key,
})

Returns the data for the form If a key is provided, it will return the data for that key

Implementation

dynamic data({String? key}) {
  if (key != null && _data.containsKey(key)) {
    return _data[key];
  }
  return _data;
}