apply method
Implementation
@override
DiagramDocument apply(DiagramDocument document) {
if (!identical(document, expected)) {
throw StateError('The document changed before the replacement.');
}
return replacement;
}
@override
DiagramDocument apply(DiagramDocument document) {
if (!identical(document, expected)) {
throw StateError('The document changed before the replacement.');
}
return replacement;
}