Page constructor

const Page({
  1. required String path,
  2. List<String> methods = const ['GET'],
})

Creates a page annotation with the given path.

The methods parameter defaults to ['GET'].

Implementation

const Page({required this.path, this.methods = const ['GET']});