MasonBundledFile class

A bundled file which is included as part of a a MasonBundle.

Annotations
  • @JsonSerializable()

Constructors

MasonBundledFile(String path, String data, String type)
A bundled file which is included as part of a a MasonBundle.
const
MasonBundledFile.fromJson(Map<String, dynamic> json)
Converts a Map<String, dynamic> into a MasonBundledFile.
factory

Properties

data String
The encoded contents of the file
final
hashCode int
The hash code for this object.
no setterinherited
path String
The relative file path
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The type of file (binary/text)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts a MasonBundledFile into a Map<String, dynamic>.
toString() String
A string representation of this object.
inherited

Operators

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