Layer<T> getLayer(T position) { return _layers.firstWhere((element) => element.position == position); }