getRootContext method Null safety

  1. @override
BuildContext? getRootContext()
override

Gets root context.