PinConfiguration class

Configuration for the pin/pointer indicator

Constructors

PinConfiguration({Size size = const Size(40, 40), PinPosition position = PinPosition.top, double horizontalOffset = 0.0, double verticalOffset = 0.0, Color? backgroundColor, Color? tintColor, Widget? customWidget, IconData? icon, ImageProvider<Object>? image})
const
PinConfiguration.custom({required Widget widget, Size size = const Size(40, 40), PinPosition position = PinPosition.top, double horizontalOffset = 0.0, double verticalOffset = 0.0})
Creates a pin with a custom widget
factory
PinConfiguration.icon({required IconData icon, Size size = const Size(40, 40), PinPosition position = PinPosition.top, Color? color, Color? backgroundColor, double horizontalOffset = 0.0, double verticalOffset = 0.0})
Creates a pin with an icon
factory
PinConfiguration.image({required ImageProvider<Object> image, Size size = const Size(40, 40), PinPosition position = PinPosition.top, Color? tintColor, Color? backgroundColor, double horizontalOffset = 0.0, double verticalOffset = 0.0})
Creates a pin with an image
factory

Properties

backgroundColor Color?
Background color of the pin
final
customWidget Widget?
Custom widget to use as pin (overrides icon/image)
final
hashCode int
The hash code for this object.
no setterinherited
horizontalOffset double
Horizontal offset from default position
final
icon IconData?
Icon to use as pin
final
image ImageProvider<Object>?
Image to use as pin
final
position PinPosition
Position of the pin relative to the wheel
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size
Size of the pin
final
tintColor Color?
Tint color for the pin icon/image
final
verticalOffset double
Vertical offset from default position
final

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