PublishLayoutInfo class final
What the publish model knows of one layout without loading it.
- Annotations
-
- @immutable
Constructors
-
PublishLayoutInfo({required String id, String pageId = '', List<
PublishCanvas> canvases = const [], List<String> fonts = const [], List<String> apis = const [], List<String> components = const [], DateTime? lastUpdated}) -
const
-
PublishLayoutInfo.of(PublishLayout layout, {List<
String> components = const []}) -
The entry listing a loaded
layout;componentsis the closure of component types it calls (the publisher's to compute: the layout alone doesn't know which of its types are components).factory
Properties
-
apis
→ List<
String> -
Ids of the APIs it calls.
final
-
canvases
→ List<
PublishCanvas> -
Its canvases, in order.
final
-
components
→ List<
String> -
The component types it calls, directly or through others (its
closure,
ComponentLibrary.closureOf): loaded with it, before it shows.final -
fonts
→ List<
String> -
Ids of the fonts it uses: loaded with it.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
final
- lastUpdated → DateTime?
-
When it was last published; a cached layout older than this is stale.
final
- pageId → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
hasCanvas(
String canvasId) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Json -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
Object? json, {String? id}) → PublishLayoutInfo?