FileNameFormat class

Defines the format of the file name.

Constructors

FileNameFormat(RegExp versionFormat, {String extension = '.sql'})
All files containing the migrations must satisfy two rules:

Properties

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

Methods

isValidVersion(String version) bool
Returns true if version has correct format.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseVersion(String fileName) String?
Matches the fileName against the format, returns the version if successful.
toString() String
A string representation of this object.
inherited

Operators

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