register method
Registers location, replacing whatever was held for its locator.
Returns whether it was persisted. False is not an error the caller must handle — the location is registered for this session either way — but "in effect now, gone at restart" is a different promise from "saved", and only the caller that has somewhere to say so should say it.
Implementation
@override
Future<bool> register(TomStorageLocation location) async {
_byLocator[location.locator] = location;
// Never persisted, and that is the answer rather than a failure: the
// caller renders it as "not saved", which is what happened.
return false;
}