SvgWrapper class

A class that wraps an svg

NOTE: this svg wrapper is designed to be simple and used only for this library, thus it is not recommended to use it when in need for an svg library.

Constructors

SvgWrapper({required String name, required String content})
const
SvgWrapper.fromJson(String source)
factory
SvgWrapper.fromMap(Map<String, dynamic> map)
factory

Properties

content String
The content of the svg
final
hashCode int
The hash code for this object.
no setterinherited
name String
The name of the svg
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? name, String? content}) SvgWrapper
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
positioned({double? x, double? y}) SvgWrapper
Returns the svg with x and y values
recolored(Map<String, String> colorMap) SvgWrapper
Returns a new svg wrapper with new colors, where the key to the map is the color to replace and the value is the new color
resized({double? width, double? height}) SvgWrapper
Returns a new svg resized
toJson() String
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited