startChatThread method Null safety

void startChatThread(
  1. BuildContext context,
  2. Thread thread,
  3. {String title = ''}
)

Implementation

static void startChatThread(BuildContext context, Thread thread,
    {String title = ''}) {
  Navigator.of(context).push(new MaterialPageRoute(builder: (context) {
    return new ChatThreadProvider(
      thread: thread,
      title: title,
    );
  }));
}