defaultSkin property

PositionComponent? get defaultSkin

Implementation

PositionComponent? get defaultSkin => skinsMap[ButtonState.up];
set defaultSkin (PositionComponent? value)

Implementation

set defaultSkin(PositionComponent? value) {
  skinsMap[ButtonState.up] = value;
  if (size.isZero()) {
    size = skinsMap[ButtonState.up]?.size ?? Vector2.zero();
  }
  invalidateSkins();
}