getConnection method Null safety

MySqlConnection? getConnection()