isTransparent method

bool isTransparent()

Returns true if the color of this paint is transparent.

Implementation

bool isTransparent() {
  return _paint.color == mat.Colors.transparent;
  //return paint.color == ui.Color(FlutterColor.getColor(Color.TRANSPARENT));
}