renderSymbol method

Future<Uint8List?> renderSymbol({
  1. required String name,
  2. required double size,
  3. required int colorArgb,
  4. double weight = 0.4,
})

Renders an SF Symbol to raw PNG bytes at the requested size.

Returns null on platforms without SF Symbols, which is every platform except Apple's. Callers fall back to their own icon set.

Implementation

Future<Uint8List?> renderSymbol({
  required String name,
  required double size,
  required int colorArgb,
  double weight = 0.4,
}) async => null;