isNotEmpty method

Contract isNotEmpty(
  1. String? val,
  2. String key,
  3. String message
)

Implementation

Contract isNotEmpty(String? val, String key, String message) {
  if (val == null) return this;

  if (val.isEmpty) addNotificationByKeyAndMessage(key, message);

  return this;
}