StyleImage.bytes constructor
- Uint8List bytes
Encoded image bytes (PNG, JPEG, WebP, …).
Dimensions come from the decoder — do not pass width/height.
Typical source: rootBundle.load, HTTP response body, file read.
Implementation
const factory StyleImage.bytes(Uint8List bytes) = StyleImageBytes;