parseClip function
Implementation
Clip? parseClip(String? value) {
if (value == null) {
return null;
}
switch (value) {
case 'none':
return Clip.none;
case 'hardEdge':
return Clip.hardEdge;
case 'antiAlias':
return Clip.antiAlias;
case 'antiAliasWithSaveLayer':
return Clip.antiAliasWithSaveLayer;
default:
return Clip.hardEdge;
}
}