DashboardGadget class

Details of a gadget.

Constructors

DashboardGadget({required DashboardGadgetColor color, required int id, String? moduleKey, required DashboardGadgetPosition position, required String title, String? uri})
DashboardGadget.fromJson(Map<String, Object?> json)
factory

Properties

color DashboardGadgetColor
The color of the gadget. Should be one of blue, red, yellow, green, cyan, purple, gray, or white.
final
hashCode int
The hash code for this object.
no setterinherited
id int
The ID of the gadget instance.
final
moduleKey String?
The module key of the gadget type.
final
position DashboardGadgetPosition
The position of the gadget.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
The title of the gadget.
final
uri String?
The URI of the gadget type.
final

Methods

copyWith({DashboardGadgetColor? color, int? id, String? moduleKey, DashboardGadgetPosition? position, String? title, String? uri}) DashboardGadget
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited