GroupVisibilityMode enum

The visibility modes on a group layer.

Inheritance

Constructors

GroupVisibilityMode()
const

Values

independent → const GroupVisibilityMode

Each child layer independently manages its visibility.

In independent mode, a child layer's visibility property is independent of its parent's and siblings' visibility properties. Changes to the parent or siblings' visibility properties have no effect on the current layer's visibility property. However, the rendering of a child layer on the view requires both its visibility property and its parent's visibility property to be true. This can be visualized in the context of a table of contents. A parent can contain multiple child layers, each with a differing value of their visibility property. Turning off the parent's visibility will prevent any child layer from rendering on the view. But their visibility property will still be reflected in the table of contents. Setting the parent's visibility back to true returns the view to the original state.

inherited → const GroupVisibilityMode

Each child inherits the visibility of its parent group.

The visibility property of child layers is determined by the visibility of the parent layer and cannot be set independently of the parent. This means all child layers' visibility properties always match the visibility property of the parent. In an implementation of a table of contents, setting the parent's visibility to on or off will cause child layers to match. You may choose to hide all child layers from your table of contents given the group is treated as a single logical layer in terms of visibility.

exclusive → const GroupVisibilityMode

Only one child is visible at a time.

In exclusive mode, only a single child may have its visible property set to true. When setting the visibility property of a child layer to true, all others will have their visibility set to false. However, the rendering of a child layer requires both its visibility property and its parent's visibility property to be true. In an implementation of a table of contents, a group layer will only ever contain one visible child layer.

Properties

coreValue → RT_GroupVisibilityMode
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<GroupVisibilityMode>
A constant List of the values in this enum, in order of their declaration.