ConditionalImageLoader class
Service that loads images based on conditions
Constructors
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
-
addConditionalRule(
ReportElement element, Map< String, dynamic> rule) → void - Adds a conditional image rule
-
getConditionalRules(
ReportElement element) → List< Map< String, dynamic> > - Returns the conditional image rules of an element
-
loadImage(
Map< String, dynamic> data, ReportElement element, {double? width, double? height, BoxFit? fit}) → Widget - Loads an image based on the configured conditions
-
removeConditionalRule(
ReportElement element, int index) → void - Removes a conditional image rule
-
supportsConditionalImages(
ReportElement element) → bool - Whether an element supports conditional images
-
updateConditionalRule(
ReportElement element, int index, Map< String, dynamic> rule) → void - Updates a conditional image rule