started incremental migration to null safety

This commit is contained in:
ashilkn 2022-09-07 14:00:09 +05:30
parent 1a020dc092
commit eb7c1ec837
261 changed files with 522 additions and 1 deletions

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:io';
import 'package:adaptive_theme/adaptive_theme.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:io' as io;
import 'package:photos/core/cache/lru_map.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:collection';
typedef EvictionHandler<K, V> = Function(K key, V value);

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:typed_data';
import 'package:photos/core/cache/lru_map.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
class ThumbnailCacheManager {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
class VideoCacheManager {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert';
import 'dart:io' as io;
import 'dart:typed_data';

View file

@ -1,3 +1,5 @@
// @dart=2.9
const int kThumbnailSmallSize = 256;
const int kThumbnailQuality = 50;
const int kThumbnailLargeSize = 512;

View file

@ -1,3 +1,5 @@
// @dart=2.9
library super_logging;
import 'dart:async';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert';
import 'package:http/http.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
class InvalidFileError extends ArgumentError {
InvalidFileError(String message) : super(message);
}

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:event_bus/event_bus.dart';
class Bus {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:io';
import 'package:alice/alice.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/search/holiday_search_result.dart';
const List<HolidayData> allHolidays = [

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/search/month_search_result.dart';
List<MonthData> allMonths = [

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/utils/date_time_util.dart';
class YearsData {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert';
import 'dart:io';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:io';
import 'package:flutter/foundation.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:io';
import 'package:flutter/foundation.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:io';
import 'package:logging/logging.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:async';
import 'dart:io';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:async';
import 'dart:io';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert';
import 'dart:io';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:async';
import 'dart:io';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:flutter/material.dart';
import 'package:flutter_datetime_picker/flutter_datetime_picker.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/events/event.dart';
class AccountConfiguredEvent extends Event {}

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/events/event.dart';
class BackupFoldersUpdatedEvent extends Event {}

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/events/files_updated_event.dart';
class CollectionUpdatedEvent extends FilesUpdatedEvent {

View file

@ -1 +1,3 @@
// @dart=2.9
class Event {}

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/events/event.dart';
import 'package:photos/models/file.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/events/event.dart';
class ForceReloadHomeGalleryEvent extends Event {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/events/event.dart';
class ForceReloadTrashPageEvent extends Event {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/events/files_updated_event.dart';
class LocalPhotosUpdatedEvent extends FilesUpdatedEvent {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/events/event.dart';
class PermissionGrantedEvent extends Event {}

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/events/event.dart';
class SignedInEvent extends Event {}

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/events/event.dart';
class SubscriptionPurchasedEvent extends Event {}

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/events/event.dart';
class SyncStatusUpdate extends Event {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/events/event.dart';
class TabChangedEvent extends Event {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/events/event.dart';
class TriggerLogoutEvent extends Event {}

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/events/event.dart';
class TwoFactorStatusChangeEvent extends Event {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/events/event.dart';
class UserDetailsChangedEvent extends Event {}

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/events/event.dart';
class UserLoggedOutEvent extends Event {}

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:ui';
class L10n {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:async';
import 'dart:io';

View file

@ -1,3 +1,5 @@
// @dart=2.9
class BackupStatus {
final List<String> localIDs;
final int size;

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert';
import 'package:flutter/foundation.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert';
import 'dart:core';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert';
class CollectionFileItem {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/collection.dart';
import 'package:photos/models/device_folder.dart';
import 'package:photos/models/file.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:flutter/foundation.dart';
class DeleteChallengeResponse {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:typed_data';
class DerivedKeyResult {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/file.dart';
class DeviceFolder {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert';
import 'package:photos/models/file.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:typed_data';
class EncryptionResult {

View file

@ -1,5 +1,8 @@
// EnteFile is base file entry for various type of files
// like DeviceFile,RemoteFile or TrashedFile
// @dart=2.9
abstract class EnteFile {
// returns cacheKey which should be used while caching entry related to
// this file.

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:path/path.dart';
import 'package:photo_manager/photo_manager.dart';
import 'package:photos/core/configuration.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/file.dart';
class FileLoadResult {

View file

@ -1,3 +1,5 @@
// @dart=2.9
enum FileType {
image,
video,

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/file.dart';
class GalleryItemsFilter {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:io';
import 'package:path/path.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
enum GalleryType {
homepage,
archive,

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/trash_file.dart';
const kIgnoreReasonTrash = "trash";

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert';
class KeyAttributes {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/key_attributes.dart';
import 'package:photos/models/private_key_attributes.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
class Location {
final double latitude;
final double longitude;

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert';
const kVisibilityVisible = 0;

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/file.dart';
class Memory {

View file

@ -1,3 +1,5 @@
// @dart=2.9
class PrivateKeyAttributes {
final String key;
final String recoveryKey;

View file

@ -1,3 +1,5 @@
// @dart=2.9
class PublicKey {
final String email;
final String publicKey;

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/collection_items.dart';
import 'package:photos/models/search/search_results.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/file.dart';
import 'package:photos/models/search/search_results.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/file.dart';
import 'package:photos/models/search/search_results.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
class LocationApiResponse {
final List<LocationDataFromResponse> results;
LocationApiResponse({

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/file.dart';
import 'package:photos/models/search/search_results.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/file.dart';
import 'package:photos/models/search/search_results.dart';

View file

@ -1 +1,3 @@
// @dart=2.9
class SearchResult {}

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/file.dart';
import 'package:photos/models/search/search_results.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:flutter/foundation.dart';
import 'package:photos/models/file.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert';
import 'package:flutter/foundation.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert';
class SetKeysRequest {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert';
class SetRecoveryKeyRequest {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert';
const kFreeProductID = "free";

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/file.dart';
class TrashFile extends File {

View file

@ -1,3 +1,5 @@
// @dart=2.9
class TrashRequest {
final int fileID;
final int collectionID;

View file

@ -1 +1,3 @@
// @dart=2.9

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert';
class UploadURL {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:math';
import 'package:collection/collection.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:logging/logging.dart';
class AppLifecycleService {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:io';
import 'package:dio/dio.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert';
import 'dart:math';
import 'dart:typed_data';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:dio/dio.dart';
import 'package:logging/logging.dart';
import 'package:photos/core/configuration.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert';
import 'package:flutter_sodium/flutter_sodium.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert';
import 'dart:io';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert';
import 'package:dio/dio.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:async';
import 'dart:io';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:flutter/material.dart';
import 'package:local_auth/local_auth.dart';
import 'package:photos/core/configuration.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:async';
import 'dart:core';
import 'dart:io';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:async';
import 'dart:io';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:flutter/foundation.dart';
import 'package:logging/logging.dart';
import 'package:photos/core/constants.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:io';
import 'package:flutter_local_notifications/flutter_local_notifications.dart';

Some files were not shown because too many files have changed in this diff Show more