storeState method

Future storeState(
  1. T storeState
)

Stores the current state into hive and returns the id

Implementation

Future<dynamic> storeState(T storeState) async {
  if(storeState.box == null){
    await Fort().lazyBox.put(keepKey, storeState);
  }
  else{
    await storeState.save();
  }
  return keepKey;
}