checkNotEmpty function

String checkNotEmpty(
  1. String? value,
  2. String message
)

Implementation

String checkNotEmpty(String? value, String message) {
  if (value == null || value.isEmpty) {
    throw ArgumentError(message);
  } else {
    return value;
  }
}