ui property

The UserInterface that this Layer is bound to. Throws an exception if the layer is not currently bound.

Implementation

UserInterface<T> get ui {
  if (_ui != null) return _ui!;
  throw StateError('Attempted to access Layer.ui while Layer is unbound');
}