getErrorData<E> method

E? getErrorData<E>(
  1. dynamic key
)

If no values are passed to the errorData the data will be made to null we do this by checking if a key is available in the map

Implementation

E? getErrorData<E>(dynamic key) {
  if (errorData.containsKey(key)) {
    return errorData[key] as E;
  }
  return null;
}