Route constructor

const Route({
  1. Key? key,
  2. String? path,
  3. required String name,
  4. required Widget page,
})

Implementation

const Route({
  Key? key,
  String? path,
  required this.name,
  required Widget page,
})  : path = path ?? name,
      super(key: key, child: page);