goTo function

dynamic goTo(
  1. dynamic context,
  2. dynamic className
)

Implementation

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