TF-56 Add object upload request & response and widget builder

This commit is contained in:
dab246
2021-09-17 17:37:25 +07:00
committed by Dat H. Pham
parent 858cb438a9
commit 926f249897
16 changed files with 210 additions and 5 deletions
+4
View File
@@ -1,3 +1,5 @@
import 'dart:convert';
import 'package:equatable/equatable.dart';
import 'package:model/model.dart';
@@ -12,6 +14,8 @@ class AccountRequest with EquatableMixin {
'password': password.value,
};
String basicAuth() => 'Basic ${base64Encode(utf8.encode('${userName.userName}:${password.value}'))}';
@override
List<Object> get props => [userName, password];
}