encodeClip static method
Encodes the given value
to the String representation. Supported values
are:
antiAlias
antiAliasWithSaveLayer
hardEdge
none
All other values, including null
, will result in null
.
Implementation
static String? encodeClip(Clip? value) {
String? result;
if (value != null) {
switch (value) {
case Clip.antiAlias:
result = 'antiAlias';
break;
case Clip.antiAliasWithSaveLayer:
result = 'antiAliasWithSaveLayer';
break;
case Clip.hardEdge:
result = 'hardEdge';
break;
case Clip.none:
result = 'none';
break;
}
}
return result;
}