configuration property Null safety

ImageConfiguration configuration

The configuration to pass to the BoxPainter obtained from the decoration, when painting.

The ImageConfiguration.size field is ignored (and replaced by the size of the referenceBox, at paint time).

Implementation

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

Implementation

set configuration(ImageConfiguration value) {
  assert(value != null);
  if (value == _configuration) {
    return;
  }
  _configuration = value;
  controller.markNeedsPaint();
}