environment property

ApptiveGridEnvironment environment
inherited

The current ApptiveGridEnvironment environment

Implementation

ApptiveGridEnvironment get environment => _environment;
  1. @override
void environment=(ApptiveGridEnvironment environment)
override

Updates environment and calls notifyListeners if the configuration has changed. If the environment is the current one or there is matching configuration in _configurations it will not do anything

Implementation

@override
set environment(ApptiveGridEnvironment environment) {
  if (environment != _environment) {
    final newConfiguration = _configurations[environment];
    if (newConfiguration != null) {
      _environment = environment;
      _configuration = newConfiguration;
      notifyListeners();
    }
  }
}