defaultVariant static method

MorphOrbVariant? defaultVariant(
  1. MorphOrbState state
)

The default geometry of a continuous state; null for terminal states, which always draw their own glyph.

Implementation

static MorphOrbVariant? defaultVariant(MorphOrbState state) =>
    switch (state) {
      MorphOrbState.idle => MorphOrbVariant.ring,
      MorphOrbState.thinking => MorphOrbVariant.orbits,
      MorphOrbState.processing => MorphOrbVariant.rubik,
      MorphOrbState.generating => MorphOrbVariant.ribbon,
      MorphOrbState.success ||
      MorphOrbState.error ||
      MorphOrbState.stopped => null,
    };