core/placeholder_png library
Constants
- placeholderPngComment → const String
-
Text embedded in generated placeholder images so
doctorcan tell a template image from a real one.
Functions
-
buildPlaceholderPng(
{int size = 512, int red = 0x42, int green = 0x85, int blue = 0xF4}) → Uint8List -
Builds a valid solid-colour PNG so icon and splash tooling can run
before a client has real artwork.
sizeis the width and height. -
isPlaceholderPng(
File file) → bool -
Whether
fileis a placeholder generated by buildPlaceholderPng.