Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time
10 lines (8 sloc) 222 Bytes
library seaside.has_state;
/// Interface of objects with state.
abstract class HasState<T> {
/// Creates a new snapshot of type [T].
T snapshot();
/// Restores a snapshot of type [T].
void restore(T snapshot);