getEnvironment abstract method Null safety

Environment? getEnvironment()

Gets environment.