File class

Provides data related to file.

Constructors

File({int? seed})
Provides data related to file.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seed int?
final

Methods

ext({FileType? fileType}) String
Returns a random file extension.
mimeType({MimeType? type}) String
Returns a random mime type.
name({FileType? fileType}) String
Returns a random file name with some extension.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
size({int min = 1, int max = 100}) String
Returns size of a file.
toString() String
A string representation of this object.
inherited

Operators

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