BoxSizing enum

The box-sizing CSS property sets how the total width and height of an element is calculated.

Read more: MDN box-sizing

Inheritance
Available extensions

Values

borderBox → const BoxSizing

This is the initial and default value as specified by the CSS standard. The width and height properties include the content, but does not include the padding, border, or margin.

const BoxSizing('border-box')
contentBox → const BoxSizing

The width and height properties include the content, padding, and border, but do not include the margin. Note that padding and border will be inside of the box.

const BoxSizing('content-box')
inherit → const BoxSizing
const BoxSizing('inherit')
initial → const BoxSizing
const BoxSizing('initial')
revert → const BoxSizing
const BoxSizing('revert')
revertLayer → const BoxSizing
const BoxSizing('revert-layer')
unset → const BoxSizing
const BoxSizing('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<BoxSizing>
A constant List of the values in this enum, in order of their declaration.