bitsPerSample property

int get bitsPerSample

The number of bits per sample.

Implementation

int get bitsPerSample => red != null
    ? red!.bitsPerSample
    : slices.isEmpty
        ? 0
        : slices[slices.keys.first]!.bitsPerSample;