create static method
LocalFile
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "localFile",
- String special_return_type = "localFile",
- String? path,
- bool? can_be_downloaded,
- bool? can_be_deleted,
- bool? is_downloading_active,
- bool? is_downloading_completed,
- num? download_offset,
- num? downloaded_prefix_size,
- num? downloaded_size,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static LocalFile create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "localFile",
String special_return_type = "localFile",
String? path,
bool? can_be_downloaded,
bool? can_be_deleted,
bool? is_downloading_active,
bool? is_downloading_completed,
num? download_offset,
num? downloaded_prefix_size,
num? downloaded_size,
}) {
// LocalFile localFile = LocalFile({
final Map localFile_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"path": path,
"can_be_downloaded": can_be_downloaded,
"can_be_deleted": can_be_deleted,
"is_downloading_active": is_downloading_active,
"is_downloading_completed": is_downloading_completed,
"download_offset": download_offset,
"downloaded_prefix_size": downloaded_prefix_size,
"downloaded_size": downloaded_size,
};
localFile_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (localFile_data_create_json.containsKey(key) == false) {
localFile_data_create_json[key] = value;
}
});
}
return LocalFile(localFile_data_create_json);
}