MenuImage class abstract
Constructors
- MenuImage()
- MenuImage.icon(IconData icon)
-
Creates menu image for specified icon data.
factory
- MenuImage.system(String systemImageName)
-
Creates platform-specific image with given name.
This currently works on iOS for SF symbol names
(i.e.
UIImage systemImageNamed:
).factory -
MenuImage.withImage(FutureOr<
Image?> ? imageProvider(IconThemeData theme, int devicePixelRatio)) -
Creates menu image from specified image provider function.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
asImage(
IconThemeData theme, double devicePixelRatio) → FutureOr< Image?> - Returns image representation of the menu image.
-
asWidget(
IconThemeData theme) → Widget? - If possible, returns the menu image represented as Widget.
-
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