bounds property Null safety

Rect bounds

Gets or sets the bounds.

Implementation

Rect get bounds {
  final int backUpIndex = _field._defaultIndex;
  _field._defaultIndex = _collectionIndex;
  final Rect rect = _field.bounds;
  _field._defaultIndex = backUpIndex;
  return rect;
}
void bounds=(Rect value)

Implementation

set bounds(Rect value) {
  if (value.isEmpty) {
    ArgumentError('bounds can\'t be null/empty');
  }
  final int backUpIndex = _field._defaultIndex;
  _field._defaultIndex = _collectionIndex;
  _field.bounds = value;
  _field._defaultIndex = backUpIndex;
}