SignatureUtils class
Utility class for handling signature placements and image conversions.
Constructors
- SignatureUtils.new()
-
const
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
-
addPlacementForPage(
{required List< SignaturePlacement> placements, required int currentPage, double baseScale = 0.6}) → SignaturePlacement -
Adds a new signature placement for the given
currentPage
. -
imageToPngBytes(
Image image) → Future< Uint8List> - Converts a ui.Image object into PNG byte data.
-
indicesForCurrentPage(
List< SignaturePlacement> placements, int currentPage) → List<int> -
Returns the indices of signatures that belong to
currentPage
. -
initializePlacements(
{required int count, required int currentPage, double baseScale = 0.6}) → List< SignaturePlacement> - Initializes a list of SignaturePlacement objects.
-
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