core/utils/svg_utils library

Functions

calculateBounds(List<Offset> coordinates, {double margin = 2.0}) Rect
Calculate bounding rectangle from a list of coordinate points
colorToHex(Color color) String
Utility functions for SVG processing and widget operations Convert a Flutter Color to a hex string format (#RRGGBB)
expandRect(Rect rect1, Rect rect2) Rect
Expand a rectangle to include another rectangle
extractCoordinates(List<double> numbers) List<Offset>
Extract coordinate points from a list of numbers
setsEqual<T>(Set<T>? a, Set<T>? b) bool
Compare two sets for equality (handles null cases)