th class final
The <th> HTML element defines a cell as the header of a group of table cells and may be used as a child of the <tr> element. The exact nature of this group is defined by the scope and headers attributes.
- Inheritance
Constructors
-
th(List<
Component> children, {String? abbr, int? colspan, String? headers, int? rowspan, String? scope, String? id, String? classes, Styles? styles, Map<String, String> ? attributes, Map<String, EventCallback> ? events, Key? key}) -
The <th> HTML element defines a cell as the header of a group of table cells and may be used as a child of the <tr> element. The exact nature of this group is defined by the scope and headers attributes.
const
Properties
- abbr → String?
-
A short, abbreviated description of the header cell's content provided as an alternative label to use for the header cell when referencing the cell in other contexts. Some user-agents, such as speech readers, may present this description before the content itself.
final
-
attributes
→ Map<
String, String> ? -
Additional attributes to apply to the HTML element.
final
-
children
→ List<
Component> -
The children of this component.
final
- classes → String?
-
The CSS classes to apply to the HTML element, separated by whitespace.
final
- colspan → int?
-
A non-negative integer value indicating how many columns the header cell spans or extends. The default value is 1. User agents dismiss values higher than 1000 as incorrect, defaulting such values to 1.
final
-
events
→ Map<
String, EventCallback> ? -
Event listeners to attach to the HTML element.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headers → String?
-
A list of space-separated strings corresponding to the id attributes of the <th> elements that provide the headers for this header cell.
final
- id → String?
-
The id of the HTML element. Must be unique within the document.
final
- key → Key?
-
Controls how one component replaces another component in the tree.
finalinherited
- rowspan → int?
-
A non-negative integer value indicating how many rows the header cell spans or extends. The default value is 1; if its value is set to 0, the header cell will extends to the end of the table grouping section (<thead>, <tbody>, <tfoot>, even if implicitly defined), that the <th> belongs to. Values higher than 65534 are clipped at 65534.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope → String?
-
Defines the cells that the header (defined in the <th>) element relates to. Possible enumerated values are:
final
- styles → Styles?
-
The inline styles to apply to the HTML element.
final
Methods
-
build(
BuildContext context) → Component -
Describes the part of the user interface represented by this component.
override
-
createElement(
) → Element -
Creates a StatelessElement to manage this component's location in the tree.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldRebuild(
covariant Component newComponent) → bool -
Implement this method to determine whether a rebuild can be skipped.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited