encodeMaterialTapTargetSize static method
Encodes the given value
to the String representation. Supported values
are:
padded
shrinkWrap
All other values, including null
, will result in null
.
Implementation
static String? encodeMaterialTapTargetSize(MaterialTapTargetSize? value) {
String? result;
if (value != null) {
switch (value) {
case MaterialTapTargetSize.padded:
result = 'padded';
break;
case MaterialTapTargetSize.shrinkWrap:
result = 'shrinkWrap';
break;
}
}
return _stripDynamicNull(result);
}