Skip to content

Commit 57e6e85

Browse files
committed
feat: update for 1.0.0-RC1
1 parent df1150d commit 57e6e85

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+158
-92
lines changed

lib/services/avatars.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,13 @@ class Avatars extends Service {
163163
/// of image returned is 100x100px.
164164
///
165165
///
166-
Future<Uint8List> getInitials({String? name, int? width, int? height, String? color, String? background}) async {
166+
Future<Uint8List> getInitials({String? name, int? width, int? height, String? background}) async {
167167
final String path = '/avatars/initials';
168168

169169
final Map<String, dynamic> params = {
170170
'name': name,
171171
'width': width,
172172
'height': height,
173-
'color': color,
174173
'background': background,
175174

176175

lib/src/models/account.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ class Account implements Model {
2727
/// User preferences as a key-value object
2828
final Preferences prefs;
2929

30-
Account({ required this.$id,
30+
Account({
31+
required this.$id,
3132
required this.$createdAt,
3233
required this.$updatedAt,
3334
required this.name,

lib/src/models/algo_argon2.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ class AlgoArgon2 implements Model {
99
/// Number of threads used to compute hash.
1010
final int threads;
1111

12-
AlgoArgon2({ required this.memoryCost,
12+
AlgoArgon2({
13+
required this.memoryCost,
1314
required this.timeCost,
1415
required this.threads,
1516
});

lib/src/models/algo_bcrypt.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ part of dart_appwrite.models;
33
/// AlgoBcrypt
44
class AlgoBcrypt implements Model {
55

6-
AlgoBcrypt( );
6+
AlgoBcrypt(
7+
);
78

89
factory AlgoBcrypt.fromMap(Map<String, dynamic> map) {
910
return AlgoBcrypt(

lib/src/models/algo_md5.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ part of dart_appwrite.models;
33
/// AlgoMD5
44
class AlgoMd5 implements Model {
55

6-
AlgoMd5( );
6+
AlgoMd5(
7+
);
78

89
factory AlgoMd5.fromMap(Map<String, dynamic> map) {
910
return AlgoMd5(

lib/src/models/algo_phpass.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ part of dart_appwrite.models;
33
/// AlgoPHPass
44
class AlgoPhpass implements Model {
55

6-
AlgoPhpass( );
6+
AlgoPhpass(
7+
);
78

89
factory AlgoPhpass.fromMap(Map<String, dynamic> map) {
910
return AlgoPhpass(

lib/src/models/algo_scrypt.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ class AlgoScrypt implements Model {
1111
/// Length used to compute hash.
1212
final int length;
1313

14-
AlgoScrypt({ required this.costCpu,
14+
AlgoScrypt({
15+
required this.costCpu,
1516
required this.costMemory,
1617
required this.costParallel,
1718
required this.length,

lib/src/models/algo_scrypt_modified.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ class AlgoScryptModified implements Model {
99
/// Key used to compute hash.
1010
final String signerKey;
1111

12-
AlgoScryptModified({ required this.salt,
12+
AlgoScryptModified({
13+
required this.salt,
1314
required this.saltSeparator,
1415
required this.signerKey,
1516
});

lib/src/models/algo_sha.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ part of dart_appwrite.models;
33
/// AlgoSHA
44
class AlgoSha implements Model {
55

6-
AlgoSha( );
6+
AlgoSha(
7+
);
78

89
factory AlgoSha.fromMap(Map<String, dynamic> map) {
910
return AlgoSha(

lib/src/models/attribute_boolean.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ class AttributeBoolean implements Model {
1515
/// Default value for attribute when not provided. Cannot be set when attribute is required.
1616
final bool? xdefault;
1717

18-
AttributeBoolean({ required this.key,
18+
AttributeBoolean({
19+
required this.key,
1920
required this.type,
2021
required this.status,
2122
required this.xrequired,
22-
this.array,
23-
this.xdefault,
23+
this.array,
24+
this.xdefault,
2425
});
2526

2627
factory AttributeBoolean.fromMap(Map<String, dynamic> map) {

0 commit comments

Comments
 (0)