AnnotatedRegionLayer<T extends Object> constructor

AnnotatedRegionLayer<T extends Object>(
  1. T value,
  2. {Size? size,
  3. Offset? offset,
  4. bool opaque = false}
)

Creates a new layer that annotates its children with value.

Implementation

AnnotatedRegionLayer(
  this.value, {
  this.size,
  Offset? offset,
  this.opaque = false,
}) : offset = offset ?? Offset.zero;