validate method

String? validate()

Implementation

String? validate() {
  if (notifications.isEmpty) return null;

  return notifications.first.message;
}