to method

void to(
  1. Widget page
)

Implementation

void to(Widget page) => Navigator.of(this).push(MaterialPageRoute(builder: (_) => page));