LayerHandle<T extends Layer> constructor

LayerHandle<T extends Layer>([
  1. T? _layer
])

Create a new layer handle, optionally referencing a Layer.

Implementation

LayerHandle([this._layer]) {
  if (_layer != null) {
    _layer!._refCount += 1;
  }
}