labelFor method

String labelFor({
  1. required bool right,
  2. required bool top,
})

Implementation

String labelFor({required bool right, required bool top}) {
  if (right && top) return topRight;
  if (!right && top) return topLeft;
  if (!right && !top) return bottomLeft;
  return bottomRight;
}