firstWhereOrFallback method
Use firstWhere method and in case no match return fallback value
Implementation
T firstWhereOrFallback(bool Function(T) condition, {required T fallback}) =>
firstWhere(condition, orElse: () => fallback);
Use firstWhere method and in case no match return fallback value
T firstWhereOrFallback(bool Function(T) condition, {required T fallback}) =>
firstWhere(condition, orElse: () => fallback);