configuration property Null safety

ViewConfiguration configuration

The constraints used for the root layout.

Implementation

ViewConfiguration get configuration => _configuration;
void configuration=(ViewConfiguration value)

The configuration is initially set by the configuration argument passed to the constructor.

Always call prepareInitialFrame before changing the configuration.

Implementation

set configuration(ViewConfiguration value) {
  assert(value != null);
  if (configuration == value) {
    return;
  }
  final ViewConfiguration oldConfiguration = _configuration;
  _configuration = value;
  if (oldConfiguration.toMatrix() != _configuration.toMatrix()) {
    replaceRootLayer(_updateMatricesAndCreateNewRootLayer());
  }
  assert(_rootTransform != null);
  markNeedsLayout();
}