$case method
void
$case(
- bool predicate(
- T value
- Key? key,
- required Widget build(
- BuildContext context,
- T value
Implementation
void $case(
bool Function(T value) predicate, {
Key? key,
required Widget Function(BuildContext context, T value) build,
}) {
cases.add(endpoint.$case(
predicate,
build: build,
));
}