isEmpty method

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

Implementation

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

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

  return this;
}