showChannel method Null safety

void showChannel(
  1. BuildContext context,
  2. Thread thread
)

Implementation

static void showChannel(BuildContext context, Thread thread) {
  Navigator.of(context).push(new MaterialPageRoute(builder: (context) {
    return new ChannelProvider(
      thread: thread,
    );
  }));
}