grass<T> method

T grass<T>({
  1. BuildContext? context,
  2. Object? group,
  3. bool useEntryGroup = true,
  4. int? position = 0,
})

Implementation

T grass<T>({
  BuildContext? context,
  Object? group,
  bool useEntryGroup = true,
  int? position = 0,
}) {
  assert(() {
    position = position == null ? null : position! + 1;
    return true;
  }());
  final dependence = getRouteDependence(context);

  if (context != null && useEntryGroup) {
    final entry = RouteQueueEntry.of(context);
    group ??= entry?.getGroup(T);
  }

  return Node.defaultGetData(
      getAlias(T), dependence, globalDependence, group, position);
}