2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2026-04-04 02:08:21 +00:00

null-safety

This commit is contained in:
2021-07-24 13:12:43 +03:00
parent 6be04c39ed
commit 614c6853e3
48 changed files with 3022 additions and 3320 deletions

View File

@@ -27,27 +27,20 @@ import 'AuthenticationMethod.dart';
import 'AuthenticationType.dart';
import 'Source.dart';
class Authentication
{
int tokenIndex;
AuthenticationMethod method;
class Authentication {
int? tokenIndex;
AuthenticationMethod method = AuthenticationMethod.None;
String username;
//Certificate certificate;
String domain;
String? username;
//Certificate certificate;
String? domain;
String get fullName => username + "@" + domain;
int state;
String get fullName => (username ?? '') + '@' + (domain ?? '');
int state = 0;
Source source = new Source();
Source? source;
final AuthenticationType type;
final AuthenticationType type;
Authentication(this.type)
{
}
Authentication(this.type) {}
}