ImageInput class
Image input for editing and variation requests
Constructors
-
ImageInput.new({List<
int> ? data, String? url, String? format}) -
const
-
ImageInput.fromBytes(List<
int> data, {String? format}) -
Create from bytes
factory
-
ImageInput.fromJson(Map<
String, dynamic> json) -
factory
- ImageInput.fromUrl(String url, {String? format})
-
Create from URL
factory
Properties
-
data
→ List<
int> ? -
Image data as bytes
final
- format → String?
-
Image format (png, jpeg, webp, etc.)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → String?
-
Image URL (for URL-based inputs)
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited