getOverlayValue<V> method

V? getOverlayValue<V>()

Gets the overlay value cast to a specific type. Returns null if the value is not of the expected type.

Implementation

V? getOverlayValue<V>() {
  final value = _overlayValue;
  return value is V ? value : null;
}