getLocation method Null safety

  1. @override
Future<Location?> getLocation()
override

Gets location.