ShellValue.def constructor

ShellValue.def({
  1. required RouteKey key,
  2. required List<HyperRoute<RouteValue>> tabs,
})

Implementation

factory ShellValue.def({
  required RouteKey key,
  required List<HyperRoute> tabs,
}) {
  return ShellValue(
    tabIndex: 0,
    key: key,
    tabNodes: tabs.map((e) => e.createNode()).toList(),
  );
}