legacyMotionPath static method
The binding path of legacy motion property key now: opacity is the
node's, blur its motionBlurId layer blur's radius, pathProgress
its path's progress, the rest motion.<key>; a key with a dot is a
binding path already.
Implementation
static String legacyMotionPath(String key) => switch (key) {
'opacity' => 'opacity',
'blur' => 'decoration.effects.$motionBlurId.blurRadius',
'pathProgress' => 'motion.path.progress',
_ when key.contains('.') => key,
_ => 'motion.$key',
};