UIImage class

Class that represents an object that manages iOS and MacOS image data in your app.

Check iOS UIKit.UIImage for more details. Check MacOS AppKit.NSImage for more details.

Officially Supported Platforms/Implementations:

  • iOS
  • MacOS

Constructors

UIImage({String? name, String? systemName, Uint8List? data})

Properties

data Uint8List?
The data object containing the image data.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
name String?
The name of the image asset or file.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
systemName String?
The name of the system symbol image.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts instance to a map.
toMap() Map<String, dynamic>
Converts instance to a map.
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromMap(Map<String, dynamic>? map) UIImage?
Gets a possible UIImage instance from a Map value.