AssetsProvider class abstract
Interface for providing images, image sizes and icon styles to the search layer. Call with static_cast
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
-
canProvideLabels(
SearchResultItem searchResult) → bool -
Returns
true
if provider is able to provide images for given search result and placemark types ofLabelShortLeft
,LabelShortRight
,LabelDetailedLeft
andLabelDetailedRight
. Iffalse
is returned then no label would be shown for this search result. -
iconStyle(
SearchResultItem searchResult, int placemarkIconType) → IconStyle - Returns the icon style for certain placemark type with given search result. If obtainAdIcons mode is enabled, IconStyle.anchor will be replaced for advertisement pins
-
image(
SearchResultItem searchResult, int placemarkIconType) → Future< ImageProvider> - Returns an image for certain placemark type with given search result
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
size(
SearchResultItem searchResult, int placemarkIconType) → Size - Returns the size of the icon of certain placemark type with given search result
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited