setSourceMode method
Implementation
FlarkEditResult setSourceMode(bool enabled, {int? expectedRevision}) {
final rejected = _guard(expectedRevision);
if (rejected != null) return rejected;
// A document past the live tier shows its source either way; what the
// call changes is whether source mode was asked for.
if (enabled == _editor!.sourceModeForced) {
return const FlarkEditResult.unchanged();
}
_editor!.setSourceMode(enabled);
return const FlarkEditResult.changed();
}