$case<T> function
CaseBLoCWidget<T>
$case<T>(
- bool predicate(
- T value
- Key? key,
- required Widget build(
- BuildContext context,
- T value
Implementation
CaseBLoCWidget<T> $case<T>(
bool Function(T value) predicate, {
Key? key,
required Widget Function(BuildContext context, T value) build,
}) {
return CaseBLoCWidget<T>(
key: key,
predicate: predicate,
builder: build,
);
}