NsgDataProvider constructor
NsgDataProvider({
- String? name,
- required String applicationName,
- String serverUri = '',
- String authorizationApi = 'Api/Auth',
- bool useNsgAuthorization = true,
- bool allowConnect = true,
- required String firebaseToken,
- required String applicationVersion,
- Future eventOpenLoginPage()?,
- required NsgServerParams availableServers,
- String languageCode = 'ru',
- bool newTableLogic = false,
Implementation
NsgDataProvider({
this.name,
required this.applicationName,
this.serverUri = '', //https://servername.me:1234
this.authorizationApi = 'Api/Auth',
this.useNsgAuthorization = true,
this.allowConnect = true,
required this.firebaseToken,
required this.applicationVersion,
// NsgLoginParamsInterface Function()? widgetLoginParams,
this.eventOpenLoginPage,
required this.availableServers,
this.languageCode = 'ru',
this.newTableLogic = false,
}) {
// widgetParams = widgetLoginParams ?? () => NsgBaseController.defaultLoginParams!;
}