RouterWidget constructor

RouterWidget({
  1. required Symbol name,
  2. required Widget initial,
})

Constructor for new Router Widget.

name The tag of this router; it's used to identify this.

initial Refers to the initial child of this router before routing is triggered

Implementation

RouterWidget({required this.name, required this.initial});