showTicket method Null safety

void showTicket(
  1. BuildContext context,
  2. String uid
)

Implementation

static void showTicket(BuildContext context, String uid) {
  Navigator.of(context).push(new MaterialPageRoute(builder: (context) {
    return new TicketProvider(uid: uid);
  }));
}