encode method
Implementation
@override
dynamic encode(ContentAlignment self) {
switch (self) {
case ContentAlignment.topLeft:
return 'top_left';
case ContentAlignment.topCenter:
return 'top_center';
case ContentAlignment.topRight:
return 'top_right';
case ContentAlignment.centerLeft:
return 'center_left';
case ContentAlignment.center:
return 'center';
case ContentAlignment.centerRight:
return 'center_right';
case ContentAlignment.bottomLeft:
return 'bottom_left';
case ContentAlignment.bottomCenter:
return 'bottom_center';
case ContentAlignment.bottomRight:
return 'bottom_right';
}
}