BoekwerkInterface<T> class abstract interface

An abstract interface that defines a typography scale contract.

This interface provides a standardized set of text style getters following a hierarchical typography system. Implementations can use any type T to represent text styles (e.g., TextStyle, Handschrift, or custom types).

The naming follows Material Design typography conventions with additional custom categories like navbar and subtitleLarge/subtitleMedium/subtitleSmall variants.

Typography Categories

  • Display: Largest text styles, used for hero sections or prominent headings
  • Subtitle: Secondary text styles for subtitles and supporting content
  • Headline: Section headers and important callouts
  • Title: Component titles and smaller headers
  • Body: Main content text for paragraphs and descriptions
  • Label: Small text for buttons, tabs, and form labels
  • Navbar: Navigation bar specific styling

Example

class MyTypography implements BoekwerkInterface<TextStyle> {
  @override
  TextStyle? get displayLarge => TextStyle(fontSize: 57);
  // ... other implementations
}
Implementers

Properties

bodyLarge → T?
The largest body text style.
no setter
bodyMedium → T?
The medium body text style.
no setter
bodySmall → T?
The smallest body text style.
no setter
displayLarge → T?
The largest display text style.
no setter
displayMedium → T?
The medium display text style.
no setter
displaySmall → T?
The smallest display text style.
no setter
hashCode int
The hash code for this object.
no setterinherited
headlineLarge → T?
The largest headline text style.
no setter
headlineMedium → T?
The medium headline text style.
no setter
headlineSmall → T?
The smallest headline text style.
no setter
labelLarge → T?
The largest label text style.
no setter
labelMedium → T?
The medium label text style.
no setter
labelSmall → T?
The smallest label text style.
no setter
The navigation bar text style.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtitleLarge → T?
The largest subtitle text style.
no setter
subtitleMedium → T?
The medium subtitle text style.
no setter
subtitleSmall → T?
The smallest subtitle text style.
no setter
titleLarge → T?
The largest title text style.
no setter
titleMedium → T?
The medium title text style.
no setter
titleSmall → T?
The smallest title text style.
no setter

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