mutate static method

List<Widget> mutate(
  1. BuildContext context,
  2. List<Widget> children
)

Implementation

static List<Widget> mutate(BuildContext context, List<Widget> children) {
  InjectBarTrailing? i = of(context);
  return i != null
      ? (i.start
          ? [...children, ...(i.children?.call(context) ?? [])]
          : [...(i.children?.call(context) ?? []), ...children])
      : children;
}