Region class final

A section of a route that can contain content items.

Regions help organize content within a route, for example:

  • Header region for navigation and branding
  • Body region for main content
  • Footer region for additional information

Example:

final region = Region(
  identifier: 'body',
  title: 'Body Content',
  items: [myCard, myGroup],
);
Annotations
  • @JsonSerializable()

Constructors

Region.new({required String identifier, required String title, required List<ContentItem> items})
Region.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
identifier String
final
items List<ContentItem>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
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