checkValid method

bool checkValid()

Implementation

bool checkValid() {
  valid = imageUrl?.isNotEmpty ?? false || file != null;
  return valid;
}