setupBarLife method
void
setupBarLife({
- Vector2? size,
- Color? backgroundColor,
- Color? borderColor,
- double borderWidth = 2,
- double margin = 4,
- List<
Color> ? colors, - BorderRadius? borderRadius,
- BarLifePorition barLifePosition = BarLifePorition.top,
- Vector2? offset,
- Vector2? textOffset,
- TextStyle? textStyle,
- bool showLifeText = true,
- BarLifeTextBuilder? barLifetextBuilder,
Implementation
void setupBarLife({
Vector2? size,
Color? backgroundColor,
Color? borderColor,
double borderWidth = 2,
double margin = 4,
List<Color>? colors,
BorderRadius? borderRadius,
BarLifePorition barLifePosition = BarLifePorition.top,
Vector2? offset,
Vector2? textOffset,
TextStyle? textStyle,
bool showLifeText = true,
BarLifeTextBuilder? barLifetextBuilder,
}) {
_barLifeSize = size;
_backgroundColor = backgroundColor ?? _backgroundColor;
_borderColor = borderColor ?? _borderColor;
_borderWidth = borderWidth;
_colors = colors;
_borderRadius = borderRadius ?? _borderRadius;
_barLifePosition = barLifePosition;
_margin = margin;
_offset = offset;
_textStyle = textStyle;
_showLifeText = showLifeText;
_textOffset = textOffset;
_barLifetextBuilder = barLifetextBuilder;
}