getAlpha method

int getAlpha({
  1. T? paintId,
})

Returns the current opacity.

Implementation

int getAlpha({T? paintId}) {
  return getPaint(paintId).color.alpha;
}