SimpleStateManager implementation written for Dart language