$case<T> function

CaseBLoCWidget<T> $case<T>(
  1. bool predicate(
    1. T value
    ), {
  2. Key? key,
  3. required Widget build(
    1. BuildContext context,
    2. 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,
  );
}