isEmpty property
bool
get
isEmpty
Returns true if the result is not successful or the list is empty.
Implementation
bool get isEmpty =>
switch (this) { Success(:final value) => value.isEmpty, _ => false };