BadgePosition class
Utility class. Don't try to use it!
This contains a custom position for the Badge
Constructors
- BadgePosition.bottomEnd({double bottom = -8, double end = -10})
-
Factory method that creates a new instance of this widget
according to
bottom
andend
factory - BadgePosition.bottomStart({double bottom = -8, double start = -10})
-
Factory method that creates a new instance of this widget
according to
bottom
andstart
factory - BadgePosition.center()
-
Factory method that creates a new instance of this widget
according to the center
factory
- BadgePosition.custom({double? start, double? end, double? top, double? bottom, bool isCenter = false})
-
factory
- BadgePosition.topEnd({double top = -8, double end = -10})
-
Factory method that creates a new instance of this widget
according to
top
andend
factory - BadgePosition.topStart({double top = -5, double start = -10})
-
Factory method that creates a new instance of this widget
according to
top
andstart
factory
Properties
- bottom → double?
-
Distance to the bottom side of a parent widget.
final
- end → double?
-
Distance to the end side of a parent widget.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCenter → bool
-
Indicates that the badge is in center of parent widget
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → double?
-
Distance to the start side of a parent widget.
final
- top → double?
-
Distance to the top side of a parent widget.
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