resolve static method

GlassDropMotion resolve(
  1. BuildContext context,
  2. GlassDropMotion? declared
)

The motion a control in context uses: its own declared, else the theme's — and none either way under reduced motion.

Implementation

static GlassDropMotion resolve(BuildContext context, GlassDropMotion? declared) =>
    (declared ?? GlassTheme.of(context).dropMotion).orNoneUnderReducedMotion(context);