BadgePosition class
Utility class. Don't try to use it!
This contain a custom position for the Badge
Constructors
- BadgePosition({double? top, double? end, double? bottom, double? start, bool isCenter = false})
-
This creates a new instance of this widget
const
- 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.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?
-
This is the distance to the bottom side of a parent widget.
final
- end → double?
-
This is the distance to the end side of a parent widget.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCenter → bool
-
This is indicate that centralise is required
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → double?
-
This is the distance to the start side of a parent widget.
final
- top → double?
-
This is the 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