LocalRembg class

Constructors

LocalRembg()

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

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

Static Methods

removeBackground({String? imagePath, Uint8List? imageUint8List, bool? cropTheImage = true}) Future<LocalRembgResultModel>
Removes the background from the specified image file. Returns a LocalRembgResultModel representing the result of the operation. imagePath Throws an error if the provided image path '.png', '.jpg', '.jpeg', '.heic' is invalid or unsupported. imageUint8List (Requires iOS platform). cropTheImage Specifies whether to crop the segmented image after removing the background. If set to true, the segmented image will be cropped to remove any transparent or empty areas. If set to false, the segmented image will be returned without any cropping.