ChipMotion.resolve constructor
ChipMotion.resolve(
- BuildContext context, {
- ChipStyle? style,
- Duration? duration,
- Curve? curve,
- 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,
);
}