Header class

A header component with a logo, title, and additional items.

Constructors

Header.new({required String title, List<Component> leading = const [SidebarToggleButton()], List<Component> items = const [], Key? key})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
items List<Component>
Other components to render in the header, such as site section links.
final
key → Key?
Controls how one component replaces another component in the tree.
finalinherited
leading List<Component>
Components to render before the site logo and title.
final
The src href to render as the site logo.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
The name of the site to render alongside the logo.
final

Methods

build(BuildContext context) → Component
Describes the part of the user interface represented by this component.
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