DashboardGadgetSettings class
Details of the settings for a dashboard gadget.
Constructors
- DashboardGadgetSettings({String? color, bool? ignoreUriAndModuleKeyValidation, String? moduleKey, DashboardGadgetPosition? position, String? title, String? uri})
-
DashboardGadgetSettings.fromJson(Map<
String, Object?> json) -
factory
Properties
- color → String?
-
The color of the gadget. Should be one of
blue
,red
,yellow
,green
,cyan
,purple
,gray
, orwhite
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- ignoreUriAndModuleKeyValidation → bool
-
Whether to ignore the validation of module key and URI. For example, when
a gadget is created that is a part of an application that isn't installed.
final
- moduleKey → String?
-
The module key of the gadget type. Can't be provided with
uri
.final - position → DashboardGadgetPosition?
-
The position of the gadget. When the gadget is placed into the position,
other gadgets in the same column are moved down to accommodate it.
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. Can't be provided with
moduleKey
.final
Methods
-
copyWith(
{String? color, bool? ignoreUriAndModuleKeyValidation, String? moduleKey, DashboardGadgetPosition? position, String? title, String? uri}) → DashboardGadgetSettings -
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