Skip to content

Commit 12ab238

Browse files
committed
feat: update for 1.0.0-RC1
1 parent 5d16e8d commit 12ab238

31 files changed

+61
-32
lines changed

lib/services/avatars.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,14 @@ class Avatars extends Service {
158158
/// of image returned is 100x100px.
159159
///
160160
///
161-
Future<Uint8List> getInitials({String? name, int? width, int? height, String? color, String? background}) async {
161+
Future<Uint8List> getInitials({String? name, int? width, int? height, String? background}) async {
162162
const String path = '/avatars/initials';
163163

164164
final Map<String, dynamic> params = {
165165

166166
'name': name,
167167
'width': width,
168168
'height': height,
169-
'color': color,
170169
'background': background,
171170

172171
'project': client.config['project'],

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/continent.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ class Continent implements Model {
77
/// Continent two letter code.
88
final String code;
99

10-
Continent({ required this.name,
10+
Continent({
11+
required this.name,
1112
required this.code,
1213
});
1314

lib/src/models/continent_list.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ class ContinentList implements Model {
77
/// List of continents.
88
final List<Continent> continents;
99

10-
ContinentList({ required this.total,
10+
ContinentList({
11+
required this.total,
1112
required this.continents,
1213
});
1314

lib/src/models/country.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ class Country implements Model {
77
/// Country two-character ISO 3166-1 alpha code.
88
final String code;
99

10-
Country({ required this.name,
10+
Country({
11+
required this.name,
1112
required this.code,
1213
});
1314

lib/src/models/country_list.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ class CountryList implements Model {
77
/// List of countries.
88
final List<Country> countries;
99

10-
CountryList({ required this.total,
10+
CountryList({
11+
required this.total,
1112
required this.countries,
1213
});
1314

lib/src/models/currency.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ class Currency implements Model {
1717
/// Currency plural name
1818
final String namePlural;
1919

20-
Currency({ required this.symbol,
20+
Currency({
21+
required this.symbol,
2122
required this.name,
2223
required this.symbolNative,
2324
required this.decimalDigits,

lib/src/models/currency_list.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ class CurrencyList implements Model {
77
/// List of currencies.
88
final List<Currency> currencies;
99

10-
CurrencyList({ required this.total,
10+
CurrencyList({
11+
required this.total,
1112
required this.currencies,
1213
});
1314

lib/src/models/document.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class Document implements Model {
1414
final List $permissions;
1515
final Map<String, dynamic> data;
1616

17-
Document({ required this.$id,
17+
Document({
18+
required this.$id,
1819
required this.$collection,
1920
required this.$createdAt,
2021
required this.$updatedAt,

lib/src/models/document_list.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ class DocumentList implements Model {
77
/// List of documents.
88
final List<Document> documents;
99

10-
DocumentList({ required this.total,
10+
DocumentList({
11+
required this.total,
1112
required this.documents,
1213
});
1314

0 commit comments

Comments
 (0)