getOpacity method

double getOpacity(
  1. {T? paintId}
)

Returns the current opacity.

Implementation

double getOpacity({T? paintId}) {
  return getPaint(paintId).color.opacity;
}