routePattern method Null safety

String routePattern(
  1. String name
)

Returns a route pattern for using ManagedObjectControllers.

Returns the string "/$name/:id", to be used as a route pattern in a Router for instances of ResourceController and subclasses.

Implementation

static String routePattern(String name) {
  return "/$name/[:id]";
}