alignment property
TextAlign
get
alignment
Returns matching TextAlign.
Implementation
TextAlign get alignment {
switch (this) {
case DetectionLabelPosition.topLeft:
case DetectionLabelPosition.bottomLeft:
return TextAlign.left;
case DetectionLabelPosition.topRight:
case DetectionLabelPosition.bottomRight:
return TextAlign.right;
case DetectionLabelPosition.topCenter:
case DetectionLabelPosition.bottomCenter:
return TextAlign.center;
}
}