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