goTo function
dynamic
goTo(
- dynamic context,
- dynamic className
Implementation
goTo(context, className) {
Navigator.push(context, MaterialPageRoute(builder: (context) => className));
}