class BusinessInstance { factory BusinessInstance() => _getInstance(); static BusinessInstance get instance => _getInstance(); static BusinessInstance _instance; String _businessToken; String _businessTenant; String _expirationTime; String _serviceStatus; String get businessToken => _businessToken; set businessToken(String value) { _businessToken = value; } BusinessInstance._internal() { //单例初始化 } static BusinessInstance _getInstance() { if (_instance == null) { _instance = BusinessInstance._internal(); } return _instance; } String get businessTenant => _businessTenant; set businessTenant(String value) { _businessTenant = value; } String get expirationTime => _expirationTime; set expirationTime(String value) { _expirationTime = value; } String get serviceStatus => _serviceStatus; set serviceStatus(String value) { _serviceStatus = value; } }