setupLifeBar method
void
setupLifeBar({
- Vector2? size,
- Color? backgroundColor,
- Color? borderColor,
- double borderWidth = 2,
- List<
Color> ? colors, - BorderRadius? borderRadius,
- BarLifeDrawPosition barLifeDrawPosition = BarLifeDrawPosition.top,
- Vector2? offset,
- Vector2? textOffset,
- TextStyle? textStyle,
- bool showLifeText = true,
- BarLifeTextBuilder? barLifetextBuilder,
Implementation
void setupLifeBar({
Vector2? size,
Color? backgroundColor,
Color? borderColor,
double borderWidth = 2,
List<Color>? colors,
BorderRadius? borderRadius,
BarLifeDrawPosition barLifeDrawPosition = BarLifeDrawPosition.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;
_barLifeDrawPosition = barLifeDrawPosition;
_barOffset = offset;
_textStyle = textStyle;
_showLifeText = showLifeText;
_textOffset = textOffset;
_barLifetextBuilder = barLifetextBuilder;
}