LCFile class Null safety
LeanCloud File
Constructors
- LCFile()
Properties
- acl ↔ LCACL?
-
Gets the ACL for this object.
read / writeinherited
- className → String?
-
The class name of the object.
read-onlyinherited
- createdAt → DateTime?
-
Gets the object's createdAt attribute.
read-onlyinherited
- data ↔ Uint8List?
-
read / write
- file ↔ File?
-
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
-
metaData
↔ Map<
String, dynamic> ? -
read / write
- mimeType ↔ String?
-
read / write
- name ↔ String
-
Gets file name.
read / write
- objectId → String?
-
Gets the object's objectId.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- updatedAt → DateTime?
-
Gets the object's updatedAt attribute.
read-onlyinherited
- url ↔ String?
-
read / write
Methods
-
add(
String key, dynamic value) → void -
Atomically add
value
to the end of the arraykey
.inherited -
addAll(
String key, Iterable values) → void -
Atomically add
values
to the end of the arraykey
.inherited -
addAllUnique(
String key, Iterable values) → void -
Atomically add
values
to the arraykey
, only if not already present.inherited -
addMetaData(
String key, dynamic value) → void -
addRelation(
String key, LCObject value) → void -
Adds a relation
value
tokey
.inherited -
addUnique(
String key, dynamic value) → void -
Atomically add
value
to the arraykey
, only if not already present.inherited -
decrement(
String key, num amount) → void -
Atomically decrements the value of the given
key
withamount
.inherited -
delete(
) → Future -
Also deletes the uploaded file stored on LeanCloud.
override
-
fetch(
{Iterable< String> ? keys, Iterable<String> ? includes}) → Future<LCObject> -
Fetches the object from the cloud.
inherited
-
getThumbnailUrl(
int width, int height, {int quality = 100, bool scaleToFit = true, String format = 'png'}) → String - Gets the thunbnail URL for an image.
-
increment(
String key, num amount) → void -
Atomically increments the value of the given
key
withamount
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
remove(
String key, dynamic value) → void -
Atomically remove all
value
from the arraykey
.inherited -
removeAll(
String key, Iterable values) → void -
Atomically remove all
values
from the arraykey
.inherited -
removeRelation(
String key, LCObject value) → void -
Removes relation
value
tokey
.inherited -
save(
{bool fetchWhenSave = false, LCQuery< LCObject> ? query, void onProgress(int count, int total)?}) → Future<LCFile> -
Saves the file to LeanCloud.
override
-
toString(
) → String -
Serializes this LCObject to a JSON string.
inherited
-
unset(
String key) → void -
Removes the
key
.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String key) → dynamic -
Gets the value of
key
.inherited -
operator []=(
String key, dynamic value) → void -
Sets
key
tovalue
.inherited