MosaicWidgetInfo class
A bridge to communicate with native home widgets. A widget the user has placed on their home screen.
Constructors
- MosaicWidgetInfo({required String name, String? id, String? family})
-
Creates a MosaicWidgetInfo.
const
Properties
- family → String?
-
The size family, on iOS (
systemSmall, …). Null on Android, which has no equivalent concept.final - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
Platform id: the AppWidget id on Android, the WidgetKit configuration id
on iOS. Null where the platform does not expose one.
final
- name → String
-
The widget's declared name in
mosaic.yaml.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited