AssetString class Null safety

Represents a string-base asset

Constructors

AssetString.from(String content, String targetPath)
Creates a new AssetString with the provided content.
factory

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
targetPath String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
Returns the underlying content of the asset as a String.
override
writeTo({File? file, String? chmod, bool noClobber = false}) bool
Write the asset content to the specified file, or the targetPath if null, optionally setting permissions specified in chmod. If the file exists and noClobber is true, specified permissions will still be set but the file won't be overwritten.

Operators

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