isNullOrEmpty static method

bool isNullOrEmpty(
  1. String? s
)

Checks if the given String s is null or empty

Implementation

static bool isNullOrEmpty(String? s) =>
    (s == null || s.isEmpty) ? true : false;