Check if the value is not null.
static String? notNull(String? value, {String? message}) => value == null ? message ?? 'This field is required to have a value' : null;