Visibility enum

The visibility CSS property shows or hides an element without changing the layout of a document. The property can also hide rows or columns in a <table>.

Read more: MDN visibility

Inheritance
Available extensions

Values

visible → const Visibility

The element box is visible.

const Visibility('visible')
hidden → const Visibility

The element box is invisible (not drawn), but still affects layout as normal. Descendants of the element will be visible if they have visibility set to visible. The element cannot receive focus.

const Visibility('hidden')
collapse → const Visibility

The collapse keyword has different effects for different elements:

  • For <table> rows, columns, column groups, and row groups, the row(s) or column(s) are hidden and the space they would have occupied is removed. However, the size of other rows and columns is still calculated as though the cells in the collapsed row(s) or column(s) are present.
  • Collapsed flex items and ruby annotations are hidden, and the space they would have occupied is removed.
  • For other elements, collapse is treated the same as hidden.
const Visibility('collapse')
inherit → const Visibility
const Visibility('inherit')
initial → const Visibility
const Visibility('initial')
revert → const Visibility
const Visibility('revert')
revertLayer → const Visibility
const Visibility('revert-layer')
unset → const Visibility
const Visibility('unset')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The css value
final

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<Visibility>
A constant List of the values in this enum, in order of their declaration.