removeImage method

dynamic removeImage({
  1. required bool notify,
  2. dynamic onDelete()?,
})

Implementation

removeImage({required final bool notify, final Function()? onDelete}) {
  _reset(error: false);
  onDelete?.call();
  if (notify) {
    try { notifyListeners(); } catch(e) { null; }
  }
}