isImperative property

bool get isImperative

: true when the strategy uses imperative callbacks (onCreate / onUpgrade / onDowngrade) and false when it uses the declarative migrations list. Computed once from the constructor arguments.

Implementation

bool get isImperative =>
    onCreate != null || onUpgrade != null || onDowngrade != null;