isValid method

  1. @override
bool isValid()
override

Implementation

@override
bool isValid() {
  if (model.required != null && model.required!) {
    if (returnedData?.id == -1 || returnedData == null) {
      return false;
    } else {
      return true;
    }
  } else {
    return true;
  }
}