MigrationId class

Value object representing a migration identifier derived from its file name.

Constructors

MigrationId(DateTime timestamp, String slug)
const
MigrationId.parse(String value)
factory

Properties

hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
slug → String
final
timestamp → DateTime
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toFileName() → String
Generate filename in new format: m_YYYYMMDDHHMMSS_slug.dart
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override