buildDefaultSpinePath method

dynamic buildDefaultSpinePath(
  1. Canvas canvas,
  2. double spineHeight,
  3. SpineStyle style,
  4. Size size,
)

Implementation

buildDefaultSpinePath(
    Canvas canvas, double spineHeight, SpineStyle style, Size size) {
  switch (style) {
    case SpineStyle.top:
      return _drawTop(size.width, size.height, canvas);
    case SpineStyle.left:
      return _drawLeft(size.width, size.height, canvas);
    case SpineStyle.right:
      return _drawRight(size.width, size.height, canvas);
    case SpineStyle.bottom:
      return _drawBottom(size.width, size.height, canvas);
  }
}