getLast static method

RouteQueueEntry? getLast(
  1. Object? data,
  2. NRouterDelegate delegate
)

Implementation

static RouteQueueEntry? getLast(Object? data, NRouterDelegate delegate) {
  if (data case {'list': [..., Map last]}) {
    if (RouteQueueEntry.canParse(last)) {
      return RouteQueueEntry.fromJson(last, delegate);
    }
  }

  return null;
}