opacity method Null safety

Opacity opacity(
  1. [dynamic level]
)

Adjusts the opacity of the image and makes it semi-transparent.

Receives level dynamic The level of opacity. 100 means opaque, while 0 is completely transparent. (Range: 0 to 100) return Opacity

Implementation

static Opacity opacity([dynamic level]) {
  return Opacity(level);
}