Skip to content

Commit 0706359

Browse files
committed
Commit from GitHub Actions (Format and push)
1 parent 538adb2 commit 0706359

Some content is hidden

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

89 files changed

+4447
-3905
lines changed

lib/appwrite.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// Appwrite Flutter SDK
22
///
3-
/// This SDK is compatible with Appwrite server version 1.8.x.
3+
/// This SDK is compatible with Appwrite server version 1.8.x.
44
/// For older versions, please check
55
/// [previous releases](https://github.com/appwrite/sdk-for-flutter/releases).
66
library appwrite;

lib/client_browser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export 'src/client_browser.dart';
1+
export 'src/client_browser.dart';

lib/client_io.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export 'src/client_io.dart';
1+
export 'src/client_io.dart';

lib/query.dart

Lines changed: 48 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ class Query {
1111
Map<String, dynamic> toJson() {
1212
final map = <String, dynamic>{'method': method};
1313

14-
if(attribute != null) {
14+
if (attribute != null) {
1515
map['attribute'] = attribute;
1616
}
17-
18-
if(values != null) {
17+
18+
if (values != null) {
1919
map['values'] = values is List ? values : [values];
2020
}
2121

@@ -26,7 +26,7 @@ class Query {
2626
String toString() => jsonEncode(toJson());
2727

2828
/// Filter resources where [attribute] is equal to [value].
29-
///
29+
///
3030
/// [value] can be a single value or a list. If a list is used
3131
/// the query will return resources where [attribute] is equal
3232
/// to any of the values in the list.
@@ -152,14 +152,14 @@ class Query {
152152
Query._('orderDesc', attribute).toString();
153153

154154
/// Return results before [id].
155-
///
155+
///
156156
/// Refer to the [Cursor Based Pagination](https://appwrite.io/docs/pagination#cursor-pagination)
157157
/// docs for more information.
158158
static String cursorBefore(String id) =>
159159
Query._('cursorBefore', null, id).toString();
160160

161161
/// Return results after [id].
162-
///
162+
///
163163
/// Refer to the [Cursor Based Pagination](https://appwrite.io/docs/pagination#cursor-pagination)
164164
/// docs for more information.
165165
static String cursorAfter(String id) =>
@@ -169,27 +169,59 @@ class Query {
169169
static String limit(int limit) => Query._('limit', null, limit).toString();
170170

171171
/// Return results from [offset].
172-
///
172+
///
173173
/// Refer to the [Offset Pagination](https://appwrite.io/docs/pagination#offset-pagination)
174174
/// docs for more information.
175175
static String offset(int offset) =>
176176
Query._('offset', null, offset).toString();
177177

178178
/// Filter resources where [attribute] is at a specific distance from the given coordinates.
179-
static String distanceEqual(String attribute, List<dynamic> values, double distance, [bool meters = true]) =>
180-
Query._('distanceEqual', attribute, [values, distance, meters]).toString();
179+
static String distanceEqual(
180+
String attribute,
181+
List<dynamic> values,
182+
double distance, [
183+
bool meters = true,
184+
]) => Query._('distanceEqual', attribute, [
185+
values,
186+
distance,
187+
meters,
188+
]).toString();
181189

182190
/// Filter resources where [attribute] is not at a specific distance from the given coordinates.
183-
static String distanceNotEqual(String attribute, List<dynamic> values, double distance, [bool meters = true]) =>
184-
Query._('distanceNotEqual', attribute, [values, distance, meters]).toString();
191+
static String distanceNotEqual(
192+
String attribute,
193+
List<dynamic> values,
194+
double distance, [
195+
bool meters = true,
196+
]) => Query._('distanceNotEqual', attribute, [
197+
values,
198+
distance,
199+
meters,
200+
]).toString();
185201

186202
/// Filter resources where [attribute] is at a distance greater than the specified value from the given coordinates.
187-
static String distanceGreaterThan(String attribute, List<dynamic> values, double distance, [bool meters = true]) =>
188-
Query._('distanceGreaterThan', attribute, [values, distance, meters]).toString();
203+
static String distanceGreaterThan(
204+
String attribute,
205+
List<dynamic> values,
206+
double distance, [
207+
bool meters = true,
208+
]) => Query._('distanceGreaterThan', attribute, [
209+
values,
210+
distance,
211+
meters,
212+
]).toString();
189213

190214
/// Filter resources where [attribute] is at a distance less than the specified value from the given coordinates.
191-
static String distanceLessThan(String attribute, List<dynamic> values, double distance, [bool meters = true]) =>
192-
Query._('distanceLessThan', attribute, [values, distance, meters]).toString();
215+
static String distanceLessThan(
216+
String attribute,
217+
List<dynamic> values,
218+
double distance, [
219+
bool meters = true,
220+
]) => Query._('distanceLessThan', attribute, [
221+
values,
222+
distance,
223+
meters,
224+
]).toString();
193225

194226
/// Filter resources where [attribute] intersects with the given geometry.
195227
static String intersects(String attribute, List<dynamic> values) =>
@@ -222,4 +254,4 @@ class Query {
222254
/// Filter resources where [attribute] does not touch the given geometry.
223255
static String notTouches(String attribute, List<dynamic> values) =>
224256
Query._('notTouches', attribute, values).toString();
225-
}
257+
}

lib/realtime_browser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export 'src/realtime_browser.dart';
1+
export 'src/realtime_browser.dart';

lib/realtime_io.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export 'src/realtime_io.dart';
1+
export 'src/realtime_io.dart';

lib/role.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ class Role {
6363
static String label(String name) {
6464
return 'label:$name';
6565
}
66-
}
66+
}

0 commit comments

Comments
 (0)