addState method
Associate this Controller to the specified State object to use that State object's functions and features. Returns that State object's unique identifier.
Implementation
String addState(StateMVC? state) {
if (state == null) {
return '';
}
if (state.add(this).isNotEmpty) {
return state.keyId;
} else {
return '';
}
}