FeatureScope constructor

FeatureScope([
  1. String name = 'unnamed'
])

Creates a feature scope with an optional name for debugging.

Implementation

FeatureScope([this.name = 'unnamed']) : _id = _generateId() {
  assert(() {
    _activeScopes.add(this);
    return true;
  }());
}