getOpacity method

double getOpacity({
  1. Object? paintId,
})
inherited

Returns the current opacity.

Implementation

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