ChipMotion.resolve constructor

ChipMotion.resolve(
  1. BuildContext context, {
  2. ChipStyle? style,
  3. Duration? duration,
  4. Curve? curve,
  5. double? pressedScale,
})

Resolves motion using theme defaults and per-widget overrides.

Implementation

factory ChipMotion.resolve(
  BuildContext context, {
  ChipStyle? style,
  Duration? duration,
  Curve? curve,
  double? pressedScale,
}) {
  final theme = SdChipTheme.of(context);
  return ChipMotion(
    duration: duration ?? style?.duration ?? theme.duration,
    curve: curve ?? style?.curve ?? theme.curve,
    pressedScale: pressedScale ?? style?.pressedScale ?? theme.pressedScale,
  );
}