setupBarLife method

void setupBarLife({
  1. Vector2? size,
  2. Color? backgroundColor,
  3. Color? borderColor,
  4. double borderWidth = 2,
  5. double margin = 4,
  6. List<Color>? colors,
  7. BorderRadius? borderRadius,
  8. BarLifePorition barLifePosition = BarLifePorition.top,
  9. Vector2? offset,
  10. Vector2? textOffset,
  11. TextStyle? textStyle,
  12. bool showLifeText = true,
  13. 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;
}