buildDefaultSpinePath method

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

Implementation

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