setDimension method

void setDimension(
  1. Dimension dimension
)

Implementation

void setDimension(Dimension dimension) {
  _dimension = dimension;
  if (_dimensionCompleter.isNotEmpty) {
    _dimensionCompleter.forEach((Completer<Dimension> completer) {
      completer.complete(dimension);
    });
    _dimensionCompleter.clear();
  }
}