From 425210871a610a6aba7f6d5a48fd20fd4dbadc0c Mon Sep 17 00:00:00 2001 From: Federico Correa Date: Mon, 3 Jun 2024 11:15:17 -0300 Subject: [PATCH 1/7] feat: updated flutter 3.22.1 --- .fvmrc | 2 +- analysis_options.yaml | 16 +- catalog/pubspec.yaml | 12 +- pubspec.lock | 458 ++++++++++++++++++++++-------------------- pubspec.yaml | 77 ++++--- 5 files changed, 290 insertions(+), 275 deletions(-) diff --git a/.fvmrc b/.fvmrc index 05b430ce..4efffa7b 100644 --- a/.fvmrc +++ b/.fvmrc @@ -1,3 +1,3 @@ { - "flutter": "3.13.9" + "flutter": "3.22.1" } \ No newline at end of file diff --git a/analysis_options.yaml b/analysis_options.yaml index b6e00af1..f4f56fb8 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -14,8 +14,6 @@ linter: - avoid_relative_lib_imports - avoid_renaming_method_parameters - avoid_return_types_on_setters - - avoid_returning_null - - avoid_returning_null_for_future - avoid_returning_null_for_void - avoid_returning_this - avoid_shadowing_type_parameters @@ -112,18 +110,16 @@ dart_code_metrics: allowed-duplicated-chains: 3 - prefer-trailing-comma - - # Additional information about this file can be found at # https://dart.dev/guides/language/analysis-options analyzer: exclude: - - '**/*.freezed.dart' - - '**/*.g.dart' - - '**/*.gen.dart' - - '**/*.gr.dart' - - 'bricks' - - 'lib/generated_plugin_registrant.dart' + - "**/*.freezed.dart" + - "**/*.g.dart" + - "**/*.gen.dart" + - "**/*.gr.dart" + - "bricks" + - "lib/generated_plugin_registrant.dart" errors: invalid_annotation_target: ignore unused_element: ignore # https://github.com/dart-lang/sdk/issues/49025 diff --git a/catalog/pubspec.yaml b/catalog/pubspec.yaml index 77ba6813..2cdaf64e 100644 --- a/catalog/pubspec.yaml +++ b/catalog/pubspec.yaml @@ -1,25 +1,25 @@ name: catalog description: A new Flutter package project. version: 0.0.1 -publish_to: 'none' +publish_to: "none" environment: - sdk: '>=3.0.0 <4.0.0' + sdk: ">=3.0.0 <4.0.0" flutter: 3.13.9 dependencies: flutter: sdk: flutter - auto_route: 7.8.3 - flutter_screenutil: 5.9.0 + auto_route: 8.1.3 + flutter_screenutil: 5.9.3 material_color_generator: 1.1.0 - google_fonts: 5.1.0 + google_fonts: 6.2.1 dev_dependencies: flutter_test: sdk: flutter flutter_lints: 3.0.1 - auto_route_generator: 7.3.1 + auto_route_generator: 8.0.0 flutter_gen_runner: 5.3.1 build_runner: 2.4.6 lints: 3.0.0 diff --git a/pubspec.lock b/pubspec.lock index 6e02ddef..c867b774 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,50 +5,42 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - sha256: "405666cd3cf0ee0a48d21ec67e65406aad2c726d9fa58840d3375e7bdcd32a07" + sha256: "0b2f2bd91ba804e53a61d757b986f89f1f9eaed5b11e4b2f5a2468d86d6c9fc7" url: "https://pub.dev" source: hosted - version: "60.0.0" + version: "67.0.0" analyzer: dependency: transitive description: name: analyzer - sha256: "1952250bd005bacb895a01bf1b4dc00e3ba1c526cf47dca54dfe24979c65f5b3" + sha256: "37577842a27e4338429a1cbc32679d508836510b056f1eedf0c8d20e39c1383d" url: "https://pub.dev" source: hosted - version: "5.12.0" - analyzer_plugin: - dependency: transitive - description: - name: analyzer_plugin - sha256: c1d5f167683de03d5ab6c3b53fc9aeefc5d59476e7810ba7bbddff50c6f4392d - url: "https://pub.dev" - source: hosted - version: "0.11.2" + version: "6.4.1" ansicolor: dependency: transitive description: name: ansicolor - sha256: "607f8fa9786f392043f169898923e6c59b4518242b68b8862eb8a8b7d9c30b4a" + sha256: "8bf17a8ff6ea17499e40a2d2542c2f481cd7615760c6d34065cb22bfd22e6880" url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "2.0.2" archive: dependency: transitive description: name: archive - sha256: "0c8368c9b3f0abbc193b9d6133649a614204b528982bebc7026372d61677ce3a" + sha256: cb6a278ef2dbb298455e1a713bda08524a175630ec643a242c399c932a0a1f7d url: "https://pub.dev" source: hosted - version: "3.3.7" + version: "3.6.1" args: dependency: transitive description: name: args - sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 + sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a" url: "https://pub.dev" source: hosted - version: "2.4.2" + version: "2.5.0" async: dependency: transitive description: @@ -61,26 +53,26 @@ packages: dependency: "direct main" description: name: auto_route - sha256: "72f21e8b6cbbe25f02ea69183e024996530bf495cc1b077a49e0ec6726f0c271" + sha256: "6cad3f408863ffff2b5757967c802b18415dac4acb1b40c5cdd45d0a26e5080f" url: "https://pub.dev" source: hosted - version: "7.8.3" + version: "8.1.3" auto_route_generator: dependency: "direct dev" description: name: auto_route_generator - sha256: e7aa9ab44b77cd31a4619d94db645ab5736e543fd0b4c6058c281249e479dfb8 + sha256: ba28133d3a3bf0a66772bcc98dade5843753cd9f1a8fb4802b842895515b67d3 url: "https://pub.dev" source: hosted - version: "7.3.1" + version: "8.0.0" bloc: dependency: transitive description: name: bloc - sha256: "3820f15f502372d979121de1f6b97bfcf1630ebff8fe1d52fb2b0bfa49be5b49" + sha256: "106842ad6569f0b60297619e9e0b1885c2fb9bf84812935490e6c5275777804e" url: "https://pub.dev" source: hosted - version: "8.1.2" + version: "8.1.4" boolean_selector: dependency: transitive description: @@ -109,34 +101,34 @@ packages: dependency: transitive description: name: build_daemon - sha256: "5f02d73eb2ba16483e693f80bee4f088563a820e47d1027d4cdfe62b5bb43e65" + sha256: "79b2aef6ac2ed00046867ed354c88778c9c0f029df8a20fe10b5436826721ef9" url: "https://pub.dev" source: hosted - version: "4.0.0" + version: "4.0.2" build_resolvers: dependency: transitive description: name: build_resolvers - sha256: a7417cc44d9edb3f2c8760000270c99dba8c72ff66d0146772b8326565780745 + sha256: "339086358431fa15d7eca8b6a36e5d783728cf025e559b834f4609a1fcfb7b0a" url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.4.2" build_runner: dependency: "direct dev" description: name: build_runner - sha256: "10c6bcdbf9d049a0b666702cf1cee4ddfdc38f02a19d35ae392863b47519848b" + sha256: "1414d6d733a85d8ad2f1dfcb3ea7945759e35a123cb99ccfac75d0758f75edfa" url: "https://pub.dev" source: hosted - version: "2.4.6" + version: "2.4.10" build_runner_core: dependency: transitive description: name: build_runner_core - sha256: "6d6ee4276b1c5f34f21fdf39425202712d2be82019983d52f351c94aafbc2c41" + sha256: "4ae8ffe5ac758da294ecf1802f2aff01558d8b1b00616aa7538ea9a8a5d50799" url: "https://pub.dev" source: hosted - version: "7.2.10" + version: "7.3.0" built_collection: dependency: transitive description: @@ -149,10 +141,10 @@ packages: dependency: transitive description: name: built_value - sha256: ff627b645b28fb8bdb69e645f910c2458fd6b65f6585c3a53e0626024897dedf + sha256: c7913a9737ee4007efedaffc968c049fd0f3d0e49109e778edc10de9426005cb url: "https://pub.dev" source: hosted - version: "8.6.2" + version: "8.9.2" catalog: dependency: "direct main" description: @@ -180,10 +172,10 @@ packages: dependency: transitive description: name: cli_util - sha256: b8db3080e59b2503ca9e7922c3df2072cf13992354d5e944074ffa836fba43b7 + sha256: c05b7406fdabc7a49a3929d4af76bcaccbbffcbcdcf185b082e1ae07da323d19 url: "https://pub.dev" source: hosted - version: "0.4.0" + version: "0.4.1" clock: dependency: transitive description: @@ -196,18 +188,18 @@ packages: dependency: transitive description: name: code_builder - sha256: "315a598c7fbe77f22de1c9da7cfd6fd21816312f16ffa124453b4fc679e540f1" + sha256: f692079e25e7869c14132d39f223f8eec9830eb76131925143b2129c4bb01b37 url: "https://pub.dev" source: hosted - version: "4.6.0" + version: "4.10.0" collection: dependency: transitive description: name: collection - sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a url: "https://pub.dev" source: hosted - version: "1.17.2" + version: "1.18.0" color: dependency: transitive description: @@ -244,34 +236,18 @@ packages: dependency: "direct main" description: name: cupertino_icons - sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d - url: "https://pub.dev" - source: hosted - version: "1.0.6" - dart_code_metrics: - dependency: "direct dev" - description: - name: dart_code_metrics - sha256: "3dede3f7abc077a4181ec7445448a289a9ce08e2981e6a4d49a3fb5099d47e1f" - url: "https://pub.dev" - source: hosted - version: "5.7.6" - dart_code_metrics_presets: - dependency: transitive - description: - name: dart_code_metrics_presets - sha256: b71eadf02a3787ebd5c887623f83f6fdc204d45c75a081bd636c4104b3fd8b73 + sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 url: "https://pub.dev" source: hosted - version: "1.8.0" + version: "1.0.8" dart_style: dependency: transitive description: name: dart_style - sha256: "1efa911ca7086affd35f463ca2fc1799584fb6aa89883cf0af8e3664d6a02d55" + sha256: "99e066ce75c89d6b29903d788a7bb9369cf754f7b24bf70bf4b6d6d6b26853b9" url: "https://pub.dev" source: hosted - version: "2.3.2" + version: "2.3.6" dartx: dependency: "direct main" description: @@ -284,10 +260,10 @@ packages: dependency: "direct main" description: name: dio - sha256: ce75a1b40947fea0a0e16ce73337122a86762e38b982e1ccb909daa3b9bc4197 + sha256: "11e40df547d418cc0c4900a9318b26304e665da6fa4755399a9ff9efd09034b5" url: "https://pub.dev" source: hosted - version: "5.3.2" + version: "5.4.3+1" equatable: dependency: "direct main" description: @@ -308,18 +284,18 @@ packages: dependency: transitive description: name: ffi - sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878" + sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21" url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.2" file: dependency: transitive description: name: file - sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d" + sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" url: "https://pub.dev" source: hosted - version: "6.1.4" + version: "7.0.0" fixnum: dependency: transitive description: @@ -337,10 +313,10 @@ packages: dependency: "direct main" description: name: flutter_bloc - sha256: e74efb89ee6945bcbce74a5b3a5a3376b088e5f21f55c263fc38cbdc6237faae + sha256: f0ecf6e6eb955193ca60af2d5ca39565a86b8a142452c5b24d96fb477428f4d2 url: "https://pub.dev" source: hosted - version: "8.1.3" + version: "8.1.5" flutter_dotenv: dependency: "direct main" description: @@ -353,26 +329,26 @@ packages: dependency: "direct dev" description: name: flutter_flavorizr - sha256: "54c799a467d2d5102d3e2ec9c999377ca11e30590b8d0ddd929ee9e69e26c0a0" + sha256: e9550f67a890b9111ac5a555954f3808cb8c0132ce6dea08e3381964de39b906 url: "https://pub.dev" source: hosted - version: "2.2.1" + version: "2.2.3" flutter_gen_core: dependency: transitive description: name: flutter_gen_core - sha256: e8637dd6a59860f89e5e71be0a27101ec32dad1a0ed7fd879fd23b6e91d5004d + sha256: b9894396b2a790cc2d6eb3ed86e5e113aaed993765b21d4b981c9da4476e0f52 url: "https://pub.dev" source: hosted - version: "5.3.1" + version: "5.5.0+1" flutter_gen_runner: dependency: "direct dev" description: name: flutter_gen_runner - sha256: "7de1bf4fc0439be0fef3178b6423d5c7f1f9f3a38a7c6fafe75d7f70ff4856d7" + sha256: b4c4c54e4dd89022f5e405fe96f16781be2dfbeabe8a70ccdf73b7af1302c655 url: "https://pub.dev" source: hosted - version: "5.3.1" + version: "5.5.0+1" flutter_launcher_icons: dependency: "direct dev" description: @@ -385,10 +361,10 @@ packages: dependency: "direct dev" description: name: flutter_lints - sha256: e2a421b7e59244faef694ba7b30562e489c2b489866e505074eb005cd7060db7 + sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c" url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "4.0.0" flutter_localizations: dependency: "direct main" description: flutter @@ -398,66 +374,66 @@ packages: dependency: "direct main" description: name: flutter_native_splash - sha256: ecff62b3b893f2f665de7e4ad3de89f738941fcfcaaba8ee601e749efafa4698 + sha256: edf39bcf4d74aca1eb2c1e43c3e445fd9f494013df7f0da752fefe72020eedc0 url: "https://pub.dev" source: hosted - version: "2.3.2" + version: "2.4.0" flutter_screenutil: dependency: "direct main" description: name: flutter_screenutil - sha256: "8cf100b8e4973dc570b6415a2090b0bfaa8756ad333db46939efc3e774ee100d" + sha256: "8239210dd68bee6b0577aa4a090890342d04a136ce1c81f98ee513fc0ce891de" url: "https://pub.dev" source: hosted - version: "5.9.0" + version: "5.9.3" flutter_secure_storage: dependency: "direct main" description: name: flutter_secure_storage - sha256: ffdbb60130e4665d2af814a0267c481bcf522c41ae2e43caf69fa0146876d685 + sha256: "165164745e6afb5c0e3e3fcc72a012fb9e58496fb26ffb92cf22e16a821e85d0" url: "https://pub.dev" source: hosted - version: "9.0.0" + version: "9.2.2" flutter_secure_storage_linux: dependency: transitive description: name: flutter_secure_storage_linux - sha256: "3d5032e314774ee0e1a7d0a9f5e2793486f0dff2dd9ef5a23f4e3fb2a0ae6a9e" + sha256: "4d91bfc23047422cbcd73ac684bc169859ee766482517c22172c86596bf1464b" url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.2.1" flutter_secure_storage_macos: dependency: transitive description: name: flutter_secure_storage_macos - sha256: bd33935b4b628abd0b86c8ca20655c5b36275c3a3f5194769a7b3f37c905369c + sha256: "1693ab11121a5f925bbea0be725abfcfbbcf36c1e29e571f84a0c0f436147a81" url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "3.1.2" flutter_secure_storage_platform_interface: dependency: transitive description: name: flutter_secure_storage_platform_interface - sha256: "0d4d3a5dd4db28c96ae414d7ba3b8422fd735a8255642774803b2532c9a61d7e" + sha256: cf91ad32ce5adef6fba4d736a542baca9daf3beac4db2d04be350b87f69ac4a8 url: "https://pub.dev" source: hosted - version: "1.0.2" + version: "1.1.2" flutter_secure_storage_web: dependency: transitive description: name: flutter_secure_storage_web - sha256: "30f84f102df9dcdaa2241866a958c2ec976902ebdaa8883fbfe525f1f2f3cf20" + sha256: f4ebff989b4f07b2656fb16b47852c0aab9fed9b4ec1c70103368337bc1886a9 url: "https://pub.dev" source: hosted - version: "1.1.2" + version: "1.2.1" flutter_secure_storage_windows: dependency: transitive description: name: flutter_secure_storage_windows - sha256: "5809c66f9dd3b4b93b0a6e2e8561539405322ee767ac2f64d084e2ab5429d108" + sha256: b20b07cb5ed4ed74fc567b78a72936203f587eba460af1df11281c9326cd3709 url: "https://pub.dev" source: hosted - version: "3.0.0" + version: "3.1.2" flutter_test: dependency: "direct dev" description: flutter @@ -480,10 +456,10 @@ packages: dependency: "direct dev" description: name: freezed - sha256: "2df89855fe181baae3b6d714dc3c4317acf4fccd495a6f36e5e00f24144c6c3b" + sha256: a434911f643466d78462625df76fd9eb13e57348ff43fe1f77bbe909522c67a1 url: "https://pub.dev" source: hosted - version: "2.4.1" + version: "2.5.2" freezed_annotation: dependency: "direct main" description: @@ -496,18 +472,18 @@ packages: dependency: transitive description: name: frontend_server_client - sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" + sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694 url: "https://pub.dev" source: hosted - version: "3.2.0" + version: "4.0.0" get_it: dependency: "direct main" description: name: get_it - sha256: "66c270f23f1b49d3af9c6651d8c40367319f4abefffc23380e4e7c5efd9fe4a7" + sha256: d85128a5dae4ea777324730dc65edd9c9f43155c109d5cc0a69cab74139fbac1 url: "https://pub.dev" source: hosted - version: "7.6.2" + version: "7.7.0" glob: dependency: transitive description: @@ -520,10 +496,10 @@ packages: dependency: "direct main" description: name: google_fonts - sha256: e20ff62b158b96f392bfc8afe29dee1503c94fbea2cbe8186fd59b756b8ae982 + sha256: b1ac0fe2832c9cc95e5e88b57d627c5e68c223b9657f4b96e1487aa9098c7b82 url: "https://pub.dev" source: hosted - version: "5.1.0" + version: "6.2.1" graphs: dependency: transitive description: @@ -532,6 +508,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.3.1" + hashcodes: + dependency: transitive + description: + name: hashcodes + sha256: "80f9410a5b3c8e110c4b7604546034749259f5d6dcca63e0d3c17c9258f1a651" + url: "https://pub.dev" + source: hosted + version: "2.0.0" hive: dependency: "direct main" description: @@ -549,13 +533,13 @@ packages: source: hosted version: "0.15.4" http: - dependency: "direct overridden" + dependency: transitive description: name: http - sha256: "4c3f04bfb64d3efd508d06b41b825542f08122d30bda4933fb95c069d22a4fa3" + sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938" url: "https://pub.dev" source: hosted - version: "1.0.0" + version: "1.2.1" http_multi_server: dependency: transitive description: @@ -576,18 +560,26 @@ packages: dependency: transitive description: name: image - sha256: a72242c9a0ffb65d03de1b7113bc4e189686fc07c7147b8b41811d0dd0e0d9bf + sha256: "2237616a36c0d69aef7549ab439b833fb7f9fb9fc861af2cc9ac3eedddd69ca8" + url: "https://pub.dev" + source: hosted + version: "4.2.0" + image_size_getter: + dependency: transitive + description: + name: image_size_getter + sha256: f98c4246144e9b968899d2dfde69091e22a539bb64bc9b0bea51505fbb490e57 url: "https://pub.dev" source: hosted - version: "4.0.17" + version: "2.1.3" intl: dependency: "direct main" description: name: intl - sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d" + sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf url: "https://pub.dev" source: hosted - version: "0.18.1" + version: "0.19.0" io: dependency: transitive description: @@ -608,34 +600,58 @@ packages: dependency: "direct main" description: name: json_annotation - sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467 + sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1" url: "https://pub.dev" source: hosted - version: "4.8.1" + version: "4.9.0" json_serializable: dependency: "direct dev" description: name: json_serializable - sha256: aa1f5a8912615733e0fdc7a02af03308933c93235bdc8d50d0b0c8a8ccb0b969 + sha256: ea1432d167339ea9b5bb153f0571d0039607a873d6e04e0117af043f14a1fd4b url: "https://pub.dev" source: hosted - version: "6.7.1" + version: "6.8.0" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" + url: "https://pub.dev" + source: hosted + version: "10.0.4" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" + url: "https://pub.dev" + source: hosted + version: "3.0.3" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" + url: "https://pub.dev" + source: hosted + version: "3.0.1" lints: dependency: "direct dev" description: name: lints - sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 + sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235" url: "https://pub.dev" source: hosted - version: "3.0.0" + version: "4.0.0" logger: dependency: "direct main" description: name: logger - sha256: "66cb048220ca51cf9011da69fa581e4ee2bed4be6e82870d9e9baae75739da49" + sha256: af05cc8714f356fd1f3888fb6741cbe9fbe25cdb6eedbab80e1a6db21047d4a4 url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "2.3.0" logging: dependency: transitive description: @@ -648,10 +664,10 @@ packages: dependency: transitive description: name: matcher - sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb url: "https://pub.dev" source: hosted - version: "0.12.16" + version: "0.12.16+1" material_color_generator: dependency: "direct main" description: @@ -664,26 +680,26 @@ packages: dependency: transitive description: name: material_color_utilities - sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" url: "https://pub.dev" source: hosted - version: "0.5.0" + version: "0.8.0" meta: dependency: transitive description: name: meta - sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" + sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.12.0" mime: dependency: transitive description: name: mime - sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e + sha256: "2e123074287cc9fd6c09de8336dae606d1ddb88d9ac47358826db698c176a1f2" url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "1.0.5" mutex: dependency: "direct main" description: @@ -712,34 +728,42 @@ packages: dependency: transitive description: name: path - sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" url: "https://pub.dev" source: hosted - version: "1.8.3" + version: "1.9.0" + path_parsing: + dependency: transitive + description: + name: path_parsing + sha256: e3e67b1629e6f7e8100b367d3db6ba6af4b1f0bb80f64db18ef1fbabd2fa9ccf + url: "https://pub.dev" + source: hosted + version: "1.0.1" path_provider: dependency: "direct main" description: name: path_provider - sha256: a1aa8aaa2542a6bc57e381f132af822420216c80d4781f7aa085ca3229208aaa + sha256: c9e7d3a4cd1410877472158bee69963a4579f78b68c65a2b7d40d1a7a88bb161 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.3" path_provider_android: dependency: transitive description: name: path_provider_android - sha256: "6b8b19bd80da4f11ce91b2d1fb931f3006911477cec227cce23d3253d80df3f1" + sha256: "9c96da072b421e98183f9ea7464898428e764bc0ce5567f27ec8693442e72514" url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.2.5" path_provider_foundation: dependency: transitive description: name: path_provider_foundation - sha256: "19314d595120f82aca0ba62787d58dde2cc6b5df7d2f0daf72489e38d1b57f2d" + sha256: f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16 url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.4.0" path_provider_linux: dependency: transitive description: @@ -752,10 +776,10 @@ packages: dependency: transitive description: name: path_provider_platform_interface - sha256: "94b1e0dd80970c1ce43d5d4e050a9918fce4f4a775e6142424c30a29a363265c" + sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" path_provider_windows: dependency: transitive description: @@ -768,34 +792,26 @@ packages: dependency: transitive description: name: petitparser - sha256: cb3798bef7fc021ac45b308f4b51208a152792445cce0448c9a4ba5879dd8750 + sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27 url: "https://pub.dev" source: hosted - version: "5.4.0" + version: "6.0.2" platform: dependency: transitive description: name: platform - sha256: ae68c7bfcd7383af3629daafb32fb4e8681c7154428da4febcff06200585f102 + sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec" url: "https://pub.dev" source: hosted - version: "3.1.2" + version: "3.1.4" plugin_platform_interface: dependency: transitive description: name: plugin_platform_interface - sha256: da3fdfeccc4d4ff2da8f8c556704c08f912542c5fb3cf2233ed75372384a034d - url: "https://pub.dev" - source: hosted - version: "2.1.6" - pointycastle: - dependency: transitive - description: - name: pointycastle - sha256: "7c1e5f0d23c9016c5bbd8b1473d0d3fb3fc851b876046039509e18e0c7485f2c" + sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" url: "https://pub.dev" source: hosted - version: "3.7.3" + version: "2.1.8" pool: dependency: transitive description: @@ -804,22 +820,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.5.1" - process: - dependency: transitive - description: - name: process - sha256: "53fd8db9cec1d37b0574e12f07520d582019cb6c44abf5479a01505099a34a09" - url: "https://pub.dev" - source: hosted - version: "4.2.4" provider: dependency: transitive description: name: provider - sha256: cdbe7530b12ecd9eb455bdaa2fcb8d4dad22e80b8afb4798b41479d5ce26847f + sha256: c8a055ee5ce3fd98d6fc872478b03823ffdb448699c6ebdbbc71d59b596fd48c url: "https://pub.dev" source: hosted - version: "6.0.5" + version: "6.1.2" pub_semver: dependency: transitive description: @@ -828,22 +836,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" - pub_updater: - dependency: transitive - description: - name: pub_updater - sha256: b06600619c8c219065a548f8f7c192b3e080beff95488ed692780f48f69c0625 - url: "https://pub.dev" - source: hosted - version: "0.3.1" pubspec_parse: dependency: transitive description: name: pubspec_parse - sha256: c63b2876e58e194e4b0828fcb080ad0e06d051cb607a6be51a9e084f47cb9367 + sha256: c799b721d79eb6ee6fa56f00c04b472dcd44a30d258fac2174a6ec57302678f8 url: "https://pub.dev" source: hosted - version: "1.2.3" + version: "1.3.0" rxdart: dependency: "direct main" description: @@ -856,58 +856,58 @@ packages: dependency: "direct main" description: name: shared_preferences - sha256: b7f41bad7e521d205998772545de63ff4e6c97714775902c199353f8bf1511ac + sha256: d3bbe5553a986e83980916ded2f0b435ef2e1893dfaa29d5a7a790d0eca12180 url: "https://pub.dev" source: hosted - version: "2.2.1" + version: "2.2.3" shared_preferences_android: dependency: transitive description: name: shared_preferences_android - sha256: "8568a389334b6e83415b6aae55378e158fbc2314e074983362d20c562780fb06" + sha256: "93d0ec9dd902d85f326068e6a899487d1f65ffcd5798721a95330b26c8131577" url: "https://pub.dev" source: hosted - version: "2.2.1" + version: "2.2.3" shared_preferences_foundation: dependency: transitive description: name: shared_preferences_foundation - sha256: "7bf53a9f2d007329ee6f3df7268fd498f8373602f943c975598bbb34649b62a7" + sha256: "0a8a893bf4fd1152f93fec03a415d11c27c74454d96e2318a7ac38dd18683ab7" url: "https://pub.dev" source: hosted - version: "2.3.4" + version: "2.4.0" shared_preferences_linux: dependency: transitive description: name: shared_preferences_linux - sha256: c2eb5bf57a2fe9ad6988121609e47d3e07bb3bdca5b6f8444e4cf302428a128a + sha256: "9f2cbcf46d4270ea8be39fa156d86379077c8a5228d9dfdb1164ae0bb93f1faa" url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.3.2" shared_preferences_platform_interface: dependency: transitive description: name: shared_preferences_platform_interface - sha256: d4ec5fc9ebb2f2e056c617112aa75dcf92fc2e4faaf2ae999caa297473f75d8a + sha256: "22e2ecac9419b4246d7c22bfbbda589e3acf5c0351137d87dd2939d984d37c3b" url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.3.2" shared_preferences_web: dependency: transitive description: name: shared_preferences_web - sha256: d762709c2bbe80626ecc819143013cc820fa49ca5e363620ee20a8b15a3e3daf + sha256: "9aee1089b36bd2aafe06582b7d7817fd317ef05fc30e6ba14bff247d0933042a" url: "https://pub.dev" source: hosted - version: "2.2.1" + version: "2.3.0" shared_preferences_windows: dependency: transitive description: name: shared_preferences_windows - sha256: f763a101313bd3be87edffe0560037500967de9c394a714cd598d945517f694f + sha256: "841ad54f3c8381c480d0c9b508b89a34036f512482c407e6df7a9c4aa2ef8f59" url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.3.2" shelf: dependency: transitive description: @@ -920,10 +920,10 @@ packages: dependency: transitive description: name: shelf_web_socket - sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" + sha256: "073c147238594ecd0d193f3456a5fe91c4b0abbcc68bf5cd95b36c4e194ac611" url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "2.0.0" sky_engine: dependency: transitive description: flutter @@ -933,10 +933,10 @@ packages: dependency: transitive description: name: source_gen - sha256: fc0da689e5302edb6177fdd964efcb7f58912f43c28c2047a808f5bfff643d16 + sha256: "14658ba5f669685cd3d63701d01b31ea748310f7ab854e471962670abcf57832" url: "https://pub.dev" source: hosted - version: "1.4.0" + version: "1.5.0" source_helper: dependency: transitive description: @@ -965,42 +965,42 @@ packages: dependency: "direct main" description: name: sqflite - sha256: "591f1602816e9c31377d5f008c2d9ef7b8aca8941c3f89cc5fd9d84da0c38a9a" + sha256: a43e5a27235518c03ca238e7b4732cf35eabe863a369ceba6cbefa537a66f16d url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "2.3.3+1" sqflite_common: dependency: transitive description: name: sqflite_common - sha256: "1b92f368f44b0dee2425bb861cfa17b6f6cf3961f762ff6f941d20b33355660a" + sha256: "3da423ce7baf868be70e2c0976c28a1bb2f73644268b7ffa7d2e08eab71f16a4" url: "https://pub.dev" source: hosted - version: "2.5.0" + version: "2.5.4" stack_trace: dependency: "direct main" description: name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.11.1" stock: dependency: "direct main" description: name: stock - sha256: d758d358cef7777e9bdb5037c028c51d8df0c3876acaad97aec33f72b6585505 + sha256: "43a1c693a0d6adb51c1acdb4f3141532a95aa887650b1c1dae5bbd96c228cb6a" url: "https://pub.dev" source: hosted - version: "1.0.1" + version: "1.1.1" stream_channel: dependency: transitive description: name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" stream_transform: dependency: transitive description: @@ -1021,10 +1021,10 @@ packages: dependency: transitive description: name: synchronized - sha256: "5fcbd27688af6082f5abd611af56ee575342c30e87541d0245f7ff99faa02c60" + sha256: "539ef412b170d65ecdafd780f924e5be3f60032a1128df156adad6c5b373d558" url: "https://pub.dev" source: hosted - version: "3.1.0" + version: "3.1.0+1" term_glyph: dependency: transitive description: @@ -1037,18 +1037,18 @@ packages: dependency: transitive description: name: test_api - sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" + sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" url: "https://pub.dev" source: hosted - version: "0.6.0" + version: "0.7.0" time: dependency: transitive description: name: time - sha256: "83427e11d9072e038364a5e4da559e85869b227cf699a541be0da74f14140124" + sha256: ad8e018a6c9db36cb917a031853a1aae49467a93e0d464683e029537d848c221 url: "https://pub.dev" source: hosted - version: "2.1.3" + version: "2.1.4" timing: dependency: transitive description: @@ -1073,14 +1073,22 @@ packages: url: "https://pub.dev" source: hosted version: "2.2.2" - uuid: + vector_graphics_codec: + dependency: transitive + description: + name: vector_graphics_codec + sha256: c86987475f162fadff579e7320c7ddda04cd2fdeffbe1129227a85d9ac9e03da + url: "https://pub.dev" + source: hosted + version: "1.1.11+1" + vector_graphics_compiler: dependency: transitive description: - name: uuid - sha256: "648e103079f7c64a36dc7d39369cabb358d377078a051d6ae2ad3aa539519313" + name: vector_graphics_compiler + sha256: "12faff3f73b1741a36ca7e31b292ddeb629af819ca9efe9953b70bd63fc8cd81" url: "https://pub.dev" source: hosted - version: "3.0.7" + version: "1.1.11+1" vector_math: dependency: transitive description: @@ -1089,6 +1097,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" + vm_service: + dependency: transitive + description: + name: vm_service + sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec" + url: "https://pub.dev" + source: hosted + version: "14.2.1" watcher: dependency: transitive description: @@ -1101,42 +1117,50 @@ packages: dependency: transitive description: name: web - sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 + sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" + url: "https://pub.dev" + source: hosted + version: "0.5.1" + web_socket: + dependency: transitive + description: + name: web_socket + sha256: "24301d8c293ce6fe327ffe6f59d8fd8834735f0ec36e4fd383ec7ff8a64aa078" url: "https://pub.dev" source: hosted - version: "0.1.4-beta" + version: "0.1.5" web_socket_channel: dependency: transitive description: name: web_socket_channel - sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b + sha256: a2d56211ee4d35d9b344d9d4ce60f362e4f5d1aafb988302906bd732bc731276 url: "https://pub.dev" source: hosted - version: "2.4.0" + version: "3.0.0" win32: dependency: transitive description: name: win32 - sha256: "9e82a402b7f3d518fb9c02d0e9ae45952df31b9bf34d77baf19da2de03fc2aaa" + sha256: a79dbe579cb51ecd6d30b17e0cae4e0ea15e2c0e66f69ad4198f22a6789e94f4 url: "https://pub.dev" source: hosted - version: "5.0.7" + version: "5.5.1" xdg_directories: dependency: transitive description: name: xdg_directories - sha256: "589ada45ba9e39405c198fe34eb0f607cddb2108527e658136120892beac46d2" + sha256: faea9dee56b520b55a566385b84f2e8de55e7496104adada9962e0bd11bcff1d url: "https://pub.dev" source: hosted - version: "1.0.3" + version: "1.0.4" xml: dependency: transitive description: name: xml - sha256: "5bc72e1e45e941d825fd7468b9b4cc3b9327942649aeb6fc5cdbf135f0a86e84" + sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226 url: "https://pub.dev" source: hosted - version: "6.3.0" + version: "6.5.0" yaml: dependency: transitive description: @@ -1146,5 +1170,5 @@ packages: source: hosted version: "3.1.2" sdks: - dart: ">=3.1.0-185.0.dev <4.0.0" - flutter: ">=3.13.9" + dart: ">=3.4.0 <4.0.0" + flutter: ">=3.22.1" diff --git a/pubspec.yaml b/pubspec.yaml index 22c2b63f..fadc00b8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,13 +1,13 @@ name: flutter_template description: A new Flutter project. -publish_to: 'none' +publish_to: "none" version: 1.0.0+1 environment: - sdk: '>=3.0.0 <4.0.0' - flutter: 3.13.9 + sdk: ">=3.0.0 <4.0.0" + flutter: 3.22.1 dependencies: flutter: @@ -17,51 +17,46 @@ dependencies: catalog: path: ./catalog - auto_route: 7.8.3 - cupertino_icons: 1.0.6 + auto_route: 8.1.3 + cupertino_icons: 1.0.8 dartx: 1.2.0 - dio: 5.3.2 + dio: 5.4.3+1 equatable: 2.0.5 - flutter_bloc: 8.1.3 + flutter_bloc: 8.1.5 flutter_dotenv: 5.1.0 - flutter_native_splash: 2.3.2 - flutter_screenutil: 5.9.0 - flutter_secure_storage: 9.0.0 + flutter_native_splash: 2.4.0 + flutter_screenutil: 5.9.3 + flutter_secure_storage: 9.2.2 flutter_web_browser: 0.17.1 # This can be removed freezed_annotation: 2.4.1 - get_it: 7.6.2 - google_fonts: 5.1.0 - intl: 0.18.1 - json_annotation: 4.8.1 - logger: 2.0.1 + get_it: 7.7.0 + google_fonts: 6.2.1 + intl: 0.19.0 + json_annotation: 4.9.0 + logger: 2.3.0 material_color_generator: 1.1.0 rxdart: 0.27.7 - shared_preferences: 2.2.1 - sqflite: 2.3.0 - stack_trace: 1.11.0 - stock: 1.0.1 + shared_preferences: 2.2.3 + sqflite: 2.3.3+1 + stack_trace: 1.11.1 + stock: 1.1.1 hive: 2.2.3 - path_provider: 2.1.1 + path_provider: 2.1.3 mutex: 3.1.0 -# Remove when dart_code_metrics updates its dependencies -dependency_overrides: - http: 1.0.0 - dev_dependencies: flutter_test: sdk: flutter - auto_route_generator: 7.3.1 - build_runner: 2.4.6 - dart_code_metrics: 5.7.6 - flutter_flavorizr: 2.2.1 - flutter_gen_runner: 5.3.1 + auto_route_generator: 8.0.0 + build_runner: 2.4.10 + flutter_flavorizr: 2.2.3 + flutter_gen_runner: 5.5.0+1 flutter_launcher_icons: 0.13.1 - flutter_lints: 3.0.1 - freezed: 2.4.1 - json_serializable: 6.7.1 - lints: 3.0.0 + flutter_lints: 4.0.0 + freezed: 2.5.2 + json_serializable: 6.8.0 + lints: 4.0.0 flutter: generate: true @@ -80,10 +75,10 @@ flutter_gen: flutter_launcher_icons: android: true ios: true - image_path: 'icons/ic_launcher.png' - image_path_ios: 'icons/ic_launcher_ios.png' # Transparency not supported on IOS - adaptive_icon_foreground: 'icons/ic_launcher_foreground.png' - adaptive_icon_background: '#ee1a64' + image_path: "icons/ic_launcher.png" + image_path_ios: "icons/ic_launcher_ios.png" # Transparency not supported on IOS + adaptive_icon_foreground: "icons/ic_launcher_foreground.png" + adaptive_icon_background: "#ee1a64" remove_alpha_ios: true web: generate: false @@ -91,8 +86,8 @@ flutter_launcher_icons: generate: false flutter_native_splash: - color: '#ffffff' - image: 'icons/splash_logo.png' + color: "#ffffff" + image: "icons/splash_logo.png" android_12: - image: 'icons/splash_logo_android_12.png' - branding: 'icons/splash_branding.png' + image: "icons/splash_logo_android_12.png" + branding: "icons/splash_branding.png" From 69d9efb57e41a5958294ae04766e2831c16c6d56 Mon Sep 17 00:00:00 2001 From: Federico Correa Date: Mon, 3 Jun 2024 11:36:07 -0300 Subject: [PATCH 2/7] fix: fixed stockMapper extend interface --- lib/core/source/auth_local_source.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/source/auth_local_source.dart b/lib/core/source/auth_local_source.dart index 281ed4d3..490f2855 100644 --- a/lib/core/source/auth_local_source.dart +++ b/lib/core/source/auth_local_source.dart @@ -29,7 +29,7 @@ class AuthLocalSource { Future saveUserInfo(User? user) => _userStorage.write(_keyUser, user); } -class UserStockTypeMapper extends StockTypeMapper { +class UserStockTypeMapper implements StockTypeMapper { @override User fromInput(String value) => User.fromJson(json.decode(value)); From 09ecb72ca1950a80890ecc529f3bc348f5745d94 Mon Sep 17 00:00:00 2001 From: Federico Correa Date: Mon, 3 Jun 2024 12:55:17 -0300 Subject: [PATCH 3/7] feat: added dart code linter --- analysis_options.yaml | 2 +- catalog/gallery/pubspec.yaml | 22 ++++++------- catalog/lib/common/helper.dart | 22 ++++++------- catalog/lib/theme/app_color_scheme.dart | 8 ++--- catalog/lib/theme/app_theme.dart | 6 ++-- catalog/lib/widgets/app_dropdown.dart | 8 ++--- catalog/pubspec.yaml | 2 +- lib/ui/welcome/welcome_screen.dart | 2 +- pubspec.lock | 44 +++++++++++++++++++++++-- pubspec.yaml | 2 ++ scripts/checks.sh | 4 +-- 11 files changed, 81 insertions(+), 41 deletions(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index f4f56fb8..46de1346 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -83,7 +83,7 @@ linter: - use_key_in_widget_constructors - valid_regexps -dart_code_metrics: +dart_code_linter: anti-patterns: - long-method - long-parameter-list diff --git a/catalog/gallery/pubspec.yaml b/catalog/gallery/pubspec.yaml index ba533454..eb1f91ae 100644 --- a/catalog/gallery/pubspec.yaml +++ b/catalog/gallery/pubspec.yaml @@ -1,11 +1,11 @@ name: gallery description: A new Flutter project. -publish_to: 'none' # Remove this line if you wish to publish to pub.dev +publish_to: "none" # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: '>=3.0.0 <4.0.0' - flutter: 3.13.9 + sdk: ">=3.0.0 <4.0.0" + flutter: 3.22.1 # Dependencies specify other packages that your package needs in order to work. # To automatically upgrade your package dependencies to the latest versions @@ -42,10 +42,10 @@ flutter: flutter_launcher_icons: android: true ios: true - image_path: 'icons/ic_launcher.png' - image_path_ios: 'icons/ic_launcher_ios.png' # Transparency not supported on IOS - adaptive_icon_foreground: 'icons/ic_launcher_foreground.png' - adaptive_icon_background: '#ee1a64' + image_path: "icons/ic_launcher.png" + image_path_ios: "icons/ic_launcher_ios.png" # Transparency not supported on IOS + adaptive_icon_foreground: "icons/ic_launcher_foreground.png" + adaptive_icon_background: "#ee1a64" remove_alpha_ios: true web: generate: false @@ -53,8 +53,8 @@ flutter_launcher_icons: generate: false flutter_native_splash: - color: '#ffffff' - image: 'icons/splash_logo.png' + color: "#ffffff" + image: "icons/splash_logo.png" android_12: - image: 'icons/splash_logo_android_12.png' - branding: 'icons/splash_branding.png' + image: "icons/splash_logo_android_12.png" + branding: "icons/splash_branding.png" diff --git a/catalog/lib/common/helper.dart b/catalog/lib/common/helper.dart index e23206c5..dd7d4ae6 100644 --- a/catalog/lib/common/helper.dart +++ b/catalog/lib/common/helper.dart @@ -1,8 +1,8 @@ import 'package:catalog/extensions/color_extensions.dart'; import 'package:flutter/material.dart'; -Color? _getMaterialStatesColor( - MaterialState states, +Color _getMaterialStatesColor( + WidgetState states, Color baseColor, { Color? customDisabledColor, Color? defaultColor, @@ -10,38 +10,38 @@ Color? _getMaterialStatesColor( Color? customFocusedColor, }) => switch (states) { - MaterialState.disabled => customDisabledColor ?? baseColor.getShade(500), - MaterialState.focused => customFocusedColor ?? baseColor + WidgetState.disabled => customDisabledColor ?? baseColor.getShade(500), + WidgetState.focused => customFocusedColor ?? baseColor ..getShade(400), - MaterialState.hovered => customHoveredColor ?? baseColor.getShade(300), - MaterialState.pressed => baseColor.getShade(400), + WidgetState.hovered => customHoveredColor ?? baseColor.getShade(300), + WidgetState.pressed => baseColor.getShade(400), _ => defaultColor ?? Colors.transparent, }; -MaterialStateProperty getMaterialStatesColors( +WidgetStateColor getMaterialStatesColors( Color baseColor, { Color? customDisabledColor, Color? defaultColor, Color? customHoveredColor, Color? customFocusedColor, }) => - MaterialStateProperty.resolveWith((Set states) { + WidgetStateColor.resolveWith((Set states) { for (final element in states) { return _getMaterialStatesColor(element, baseColor); } return baseColor; }); -MaterialStateProperty getBorderSidesStates( +WidgetStateProperty getBorderSidesStates( Color baseColor, { Color? customDisabledColor, Color? defaultColor, Color? customHoveredColor, Color? customFocusedColor, }) => - MaterialStateProperty.resolveWith((Set states) { + WidgetStateProperty.resolveWith((Set states) { for (final element in states) { - return BorderSide(color: _getMaterialStatesColor(element, baseColor)!); + return BorderSide(color: _getMaterialStatesColor(element, baseColor)); } return BorderSide(color: baseColor); }); diff --git a/catalog/lib/theme/app_color_scheme.dart b/catalog/lib/theme/app_color_scheme.dart index 3a7ec486..2b90d38b 100644 --- a/catalog/lib/theme/app_color_scheme.dart +++ b/catalog/lib/theme/app_color_scheme.dart @@ -41,11 +41,9 @@ class AppColorScheme extends ColorScheme { onError: colorScheme.onError, errorContainer: colorScheme.errorContainer, onErrorContainer: colorScheme.onErrorContainer, - background: colorScheme.background, - onBackground: colorScheme.onBackground, surface: colorScheme.surface, onSurface: colorScheme.onSurface, - surfaceVariant: colorScheme.surfaceVariant, + surfaceContainerHighest: colorScheme.surfaceContainerHighest, onSurfaceVariant: colorScheme.onSurfaceVariant, outline: colorScheme.outline, outlineVariant: colorScheme.outlineVariant, @@ -88,8 +86,8 @@ class AppColorScheme extends ColorScheme { }, ), onError: Colors.black, - onBackground: const Color(0xffadadad), - background: const Color(0xfff7fafd), + onSurface: const Color(0xffadadad), + surface: const Color(0xfff7fafd), ), primary: const MaterialColor( 0xffee1a64, diff --git a/catalog/lib/theme/app_theme.dart b/catalog/lib/theme/app_theme.dart index 29b3468f..0b07aa74 100644 --- a/catalog/lib/theme/app_theme.dart +++ b/catalog/lib/theme/app_theme.dart @@ -1,10 +1,10 @@ import 'package:catalog/catalog.dart'; import 'package:catalog/common/helper.dart'; import 'package:catalog/extensions/color_extensions.dart'; +import 'package:catalog/theme/app_buttons.dart'; import 'package:catalog/theme/app_color_scheme.dart'; import 'package:catalog/theme/custom_text_styles.dart'; import 'package:flutter/material.dart'; -import 'package:catalog/theme/app_buttons.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; class AppTheme { @@ -99,8 +99,8 @@ class AppTheme { color: colors.primary.shade500, ), menuStyle: MenuStyle( - maximumSize: MaterialStateProperty.resolveWith( - (Set states) => Size(1.sw, 35.h * 6), + maximumSize: WidgetStateProperty.resolveWith( + (Set states) => Size(1.sw, 35.h * 6), ), ), inputDecorationTheme: InputDecorationTheme( diff --git a/catalog/lib/widgets/app_dropdown.dart b/catalog/lib/widgets/app_dropdown.dart index 3f8882a9..27fc9e84 100644 --- a/catalog/lib/widgets/app_dropdown.dart +++ b/catalog/lib/widgets/app_dropdown.dart @@ -38,12 +38,12 @@ class _AppDropdownMenuState extends State> { value: item.value, label: item.label, style: ButtonStyle( - backgroundColor: MaterialStateProperty.resolveWith( - (Set states) => + backgroundColor: WidgetStateColor.resolveWith( + (Set states) => context.theme.colorScheme.surface.getShade(100), ), - foregroundColor: MaterialStateProperty.resolveWith( - (Set states) => + foregroundColor: WidgetStateColor.resolveWith( + (Set states) => context.theme.customColors.textColor!.getShade(400), ), ), diff --git a/catalog/pubspec.yaml b/catalog/pubspec.yaml index 2cdaf64e..92ad51c4 100644 --- a/catalog/pubspec.yaml +++ b/catalog/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: "none" environment: sdk: ">=3.0.0 <4.0.0" - flutter: 3.13.9 + flutter: 3.22.1 dependencies: flutter: diff --git a/lib/ui/welcome/welcome_screen.dart b/lib/ui/welcome/welcome_screen.dart index 134a97db..621e5797 100644 --- a/lib/ui/welcome/welcome_screen.dart +++ b/lib/ui/welcome/welcome_screen.dart @@ -30,7 +30,7 @@ class _WelcomeContentScreen extends StatelessWidget { actions: [ TextButton( style: ButtonStyle( - foregroundColor: MaterialStateProperty.all( + foregroundColor: WidgetStateProperty.all( context.theme.colorScheme.onPrimary, ), ), diff --git a/pubspec.lock b/pubspec.lock index c867b774..612c1f04 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -17,6 +17,14 @@ packages: url: "https://pub.dev" source: hosted version: "6.4.1" + analyzer_plugin: + dependency: transitive + description: + name: analyzer_plugin + sha256: "9661b30b13a685efaee9f02e5d01ed9f2b423bd889d28a304d02d704aee69161" + url: "https://pub.dev" + source: hosted + version: "0.11.3" ansicolor: dependency: transitive description: @@ -240,6 +248,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.8" + dart_code_linter: + dependency: "direct dev" + description: + name: dart_code_linter + sha256: ce99c032aae6fb607099eca24ad99204cf264aaed17c8a89c05ebe9b2329b9ca + url: "https://pub.dev" + source: hosted + version: "1.1.3" dart_style: dependency: transitive description: @@ -292,10 +308,10 @@ packages: dependency: transitive description: name: file - sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d" url: "https://pub.dev" source: hosted - version: "7.0.0" + version: "6.1.4" fixnum: dependency: transitive description: @@ -820,6 +836,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.5.1" + process: + dependency: transitive + description: + name: process + sha256: "53fd8db9cec1d37b0574e12f07520d582019cb6c44abf5479a01505099a34a09" + url: "https://pub.dev" + source: hosted + version: "4.2.4" provider: dependency: transitive description: @@ -836,6 +860,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" + pub_updater: + dependency: transitive + description: + name: pub_updater + sha256: b06600619c8c219065a548f8f7c192b3e080beff95488ed692780f48f69c0625 + url: "https://pub.dev" + source: hosted + version: "0.3.1" pubspec_parse: dependency: transitive description: @@ -1073,6 +1105,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.2.2" + uuid: + dependency: transitive + description: + name: uuid + sha256: "814e9e88f21a176ae1359149021870e87f7cddaf633ab678a5d2b0bff7fd1ba8" + url: "https://pub.dev" + source: hosted + version: "4.4.0" vector_graphics_codec: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index fadc00b8..e9578f6c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -50,6 +50,8 @@ dev_dependencies: auto_route_generator: 8.0.0 build_runner: 2.4.10 + dart_code_linter: 1.1.3 + flutter_flavorizr: 2.2.3 flutter_gen_runner: 5.5.0+1 flutter_launcher_icons: 0.13.1 diff --git a/scripts/checks.sh b/scripts/checks.sh index fb6868a0..cfda831b 100755 --- a/scripts/checks.sh +++ b/scripts/checks.sh @@ -18,11 +18,11 @@ fvm dart format --set-exit-if-changed lib || error "Linter error: Invalid format echo ':: Run linter ::' fvm flutter analyze . || error "Linter error - Flutter Analyze error" -result=$(fvm flutter pub run dart_code_metrics:metrics analyze lib --fatal-style --fatal-performance --fatal-warnings) +result=$(fvm dart run dart_code_linter:metrics analyze lib --fatal-style --fatal-performance --fatal-warnings) echo "$result" [[ $result == *'✔ no issues found!'* ]] || error "Linter error - Dart Code Metrics linter error" -fvm flutter pub run dart_code_metrics:metrics check-unused-code lib --fatal-unused || error "Linter error - Dart Code Metrics unused code error" +fvm dart run dart_code_linter:metrics check-unused-code lib --fatal-unused || error "Linter error - Dart Code Metrics unused code error" echo ':: Run Catalog checks' From 6421256ef3ce51768bb28a4d336d69611060f8e6 Mon Sep 17 00:00:00 2001 From: Federico Correa Date: Mon, 3 Jun 2024 13:06:50 -0300 Subject: [PATCH 4/7] fix: update gallery dependencies --- catalog/gallery/pubspec.lock | 92 +++++++++++++++++++++++------------- catalog/gallery/pubspec.yaml | 8 ++-- 2 files changed, 62 insertions(+), 38 deletions(-) diff --git a/catalog/gallery/pubspec.lock b/catalog/gallery/pubspec.lock index 159ea37e..6377f255 100644 --- a/catalog/gallery/pubspec.lock +++ b/catalog/gallery/pubspec.lock @@ -45,18 +45,18 @@ packages: dependency: "direct main" description: name: auto_route - sha256: "72f21e8b6cbbe25f02ea69183e024996530bf495cc1b077a49e0ec6726f0c271" + sha256: "6cad3f408863ffff2b5757967c802b18415dac4acb1b40c5cdd45d0a26e5080f" url: "https://pub.dev" source: hosted - version: "7.8.3" + version: "8.1.3" auto_route_generator: dependency: "direct dev" description: name: auto_route_generator - sha256: e7aa9ab44b77cd31a4619d94db645ab5736e543fd0b4c6058c281249e479dfb8 + sha256: ba28133d3a3bf0a66772bcc98dade5843753cd9f1a8fb4802b842895515b67d3 url: "https://pub.dev" source: hosted - version: "7.3.1" + version: "8.0.0" boolean_selector: dependency: transitive description: @@ -180,10 +180,10 @@ packages: dependency: transitive description: name: collection - sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a url: "https://pub.dev" source: hosted - version: "1.17.2" + version: "1.18.0" color: dependency: transitive description: @@ -321,10 +321,10 @@ packages: dependency: "direct main" description: name: flutter_screenutil - sha256: "8cf100b8e4973dc570b6415a2090b0bfaa8756ad333db46939efc3e774ee100d" + sha256: "8239210dd68bee6b0577aa4a090890342d04a136ce1c81f98ee513fc0ce891de" url: "https://pub.dev" source: hosted - version: "5.9.0" + version: "5.9.3" flutter_test: dependency: "direct dev" description: flutter @@ -355,10 +355,10 @@ packages: dependency: "direct main" description: name: google_fonts - sha256: e20ff62b158b96f392bfc8afe29dee1503c94fbea2cbe8186fd59b756b8ae982 + sha256: b1ac0fe2832c9cc95e5e88b57d627c5e68c223b9657f4b96e1487aa9098c7b82 url: "https://pub.dev" source: hosted - version: "5.1.0" + version: "6.2.1" graphs: dependency: transitive description: @@ -431,6 +431,30 @@ packages: url: "https://pub.dev" source: hosted version: "4.8.1" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" + url: "https://pub.dev" + source: hosted + version: "10.0.4" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" + url: "https://pub.dev" + source: hosted + version: "3.0.3" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" + url: "https://pub.dev" + source: hosted + version: "3.0.1" lints: dependency: "direct dev" description: @@ -451,10 +475,10 @@ packages: dependency: transitive description: name: matcher - sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb url: "https://pub.dev" source: hosted - version: "0.12.16" + version: "0.12.16+1" material_color_generator: dependency: "direct main" description: @@ -467,18 +491,18 @@ packages: dependency: transitive description: name: material_color_utilities - sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" url: "https://pub.dev" source: hosted - version: "0.5.0" + version: "0.8.0" meta: dependency: transitive description: name: meta - sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" + sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.12.0" mime: dependency: transitive description: @@ -499,10 +523,10 @@ packages: dependency: transitive description: name: path - sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" url: "https://pub.dev" source: hosted - version: "1.8.3" + version: "1.9.0" path_provider: dependency: transitive description: @@ -656,18 +680,18 @@ packages: dependency: transitive description: name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.11.1" stream_channel: dependency: transitive description: name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" stream_transform: dependency: transitive description: @@ -696,10 +720,10 @@ packages: dependency: transitive description: name: test_api - sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" + sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" url: "https://pub.dev" source: hosted - version: "0.6.0" + version: "0.7.0" time: dependency: transitive description: @@ -740,22 +764,22 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" - watcher: + vm_service: dependency: transitive description: - name: watcher - sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" + name: vm_service + sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec" url: "https://pub.dev" source: hosted - version: "1.1.0" - web: + version: "14.2.1" + watcher: dependency: transitive description: - name: web - sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 + name: watcher + sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" url: "https://pub.dev" source: hosted - version: "0.1.4-beta" + version: "1.1.0" web_socket_channel: dependency: transitive description: @@ -797,5 +821,5 @@ packages: source: hosted version: "3.1.2" sdks: - dart: ">=3.1.0-185.0.dev <4.0.0" - flutter: ">=3.13.9" + dart: ">=3.3.0 <4.0.0" + flutter: ">=3.22.1" diff --git a/catalog/gallery/pubspec.yaml b/catalog/gallery/pubspec.yaml index eb1f91ae..b086a603 100644 --- a/catalog/gallery/pubspec.yaml +++ b/catalog/gallery/pubspec.yaml @@ -19,16 +19,16 @@ dependencies: catalog: path: ../ - auto_route: 7.8.3 - flutter_screenutil: 5.9.0 + auto_route: 8.1.3 + flutter_screenutil: 5.9.3 flutter_native_splash: 2.3.2 material_color_generator: 1.1.0 - google_fonts: 5.1.0 + google_fonts: 6.2.1 dev_dependencies: flutter_test: sdk: flutter - auto_route_generator: 7.3.1 + auto_route_generator: 8.0.0 flutter_lints: 3.0.1 flutter_gen_runner: 5.3.1 flutter_flavorizr: 2.2.1 From 9b45275a45a114fc6e1e3c95233cadb623f9d791 Mon Sep 17 00:00:00 2001 From: Federico Correa Date: Mon, 3 Jun 2024 13:15:16 -0300 Subject: [PATCH 5/7] fix: update deprecated pop --- catalog/gallery/lib/catalog/catalog_scaffold_screen.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/catalog/gallery/lib/catalog/catalog_scaffold_screen.dart b/catalog/gallery/lib/catalog/catalog_scaffold_screen.dart index 0e6252d2..dbb6b472 100644 --- a/catalog/gallery/lib/catalog/catalog_scaffold_screen.dart +++ b/catalog/gallery/lib/catalog/catalog_scaffold_screen.dart @@ -1,7 +1,7 @@ import 'package:auto_route/auto_route.dart'; +import 'package:catalog/catalog.dart'; import 'package:catalog/extensions/color_extensions.dart'; import 'package:flutter/material.dart'; -import 'package:catalog/catalog.dart'; class CatalogScaffold extends StatelessWidget { final Widget child; @@ -24,7 +24,7 @@ class CatalogScaffold extends StatelessWidget { Icons.chevron_left, color: context.theme.colorScheme.primary.getShade(100), ), - onPressed: () => context.router.pop(), + onPressed: () => context.router.maybePop(), ) : null, title: Text(title), From f367b6c6c1299c7868f9b5656556d1b74f9e0e55 Mon Sep 17 00:00:00 2001 From: Federico Correa Date: Mon, 3 Jun 2024 13:26:47 -0300 Subject: [PATCH 6/7] feat: update fastlane lint_code_metrics lane --- fastlane/Fastfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 8d8c95ad..627a7a44 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -76,13 +76,13 @@ end desc "**Lint: Code metrics**" lane :lint_code_metrics do - result = flutter_command(command: "pub run dart_code_metrics:metrics analyze lib --fatal-style --fatal-performance --fatal-warnings") + result = flutter_command(command: "pub run dart_code_linter:metrics analyze lib --fatal-style --fatal-performance --fatal-warnings") UI.message(result) unless result.include? "✔ no issues found!" UI.user_error!("Code metrics error happened") end - flutter_command(command: "pub run dart_code_metrics:metrics check-unused-code lib --fatal-unused") + flutter_command(command: "pub run dart_code_linter:metrics check-unused-code lib --fatal-unused") end From 8058616fc7aa668bbbd8df7a4d5f2dd67c926dba Mon Sep 17 00:00:00 2001 From: Federico Correa Date: Mon, 3 Jun 2024 13:50:08 -0300 Subject: [PATCH 7/7] fix: generated code --- .../common/network_exceptions.freezed.dart | 419 +++++++++--------- lib/core/model/project.freezed.dart | 45 +- lib/core/model/project.g.dart | 7 +- .../model/service/auth_models.freezed.dart | 91 ++-- lib/core/model/service/auth_models.g.dart | 13 +- .../service/service_response.freezed.dart | 85 ++-- lib/core/model/user.freezed.dart | 42 +- lib/core/model/user.g.dart | 5 +- lib/gen/assets.gen.dart | 76 ---- .../error_handler/general_error.freezed.dart | 38 +- .../global_event_handler_cubit.freezed.dart | 210 ++++----- lib/ui/signin/signin_cubit.freezed.dart | 38 +- lib/ui/welcome/welcome_cubit.freezed.dart | 39 +- 13 files changed, 528 insertions(+), 580 deletions(-) diff --git a/lib/core/common/network_exceptions.freezed.dart b/lib/core/common/network_exceptions.freezed.dart index e99bd672..ed098970 100644 --- a/lib/core/common/network_exceptions.freezed.dart +++ b/lib/core/common/network_exceptions.freezed.dart @@ -12,7 +12,7 @@ part of 'network_exceptions.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); /// @nodoc mixin _$NetworkException { @@ -147,20 +147,20 @@ class _$NetworkExceptionCopyWithImpl<$Res, $Val extends NetworkException> } /// @nodoc -abstract class _$$UnauthorizedRequestCopyWith<$Res> { - factory _$$UnauthorizedRequestCopyWith(_$UnauthorizedRequest value, - $Res Function(_$UnauthorizedRequest) then) = - __$$UnauthorizedRequestCopyWithImpl<$Res>; +abstract class _$$UnauthorizedRequestImplCopyWith<$Res> { + factory _$$UnauthorizedRequestImplCopyWith(_$UnauthorizedRequestImpl value, + $Res Function(_$UnauthorizedRequestImpl) then) = + __$$UnauthorizedRequestImplCopyWithImpl<$Res>; @useResult $Res call({dynamic body}); } /// @nodoc -class __$$UnauthorizedRequestCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$UnauthorizedRequest> - implements _$$UnauthorizedRequestCopyWith<$Res> { - __$$UnauthorizedRequestCopyWithImpl( - _$UnauthorizedRequest _value, $Res Function(_$UnauthorizedRequest) _then) +class __$$UnauthorizedRequestImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$UnauthorizedRequestImpl> + implements _$$UnauthorizedRequestImplCopyWith<$Res> { + __$$UnauthorizedRequestImplCopyWithImpl(_$UnauthorizedRequestImpl _value, + $Res Function(_$UnauthorizedRequestImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -168,7 +168,7 @@ class __$$UnauthorizedRequestCopyWithImpl<$Res> $Res call({ Object? body = freezed, }) { - return _then(_$UnauthorizedRequest( + return _then(_$UnauthorizedRequestImpl( freezed == body ? _value.body! : body, )); } @@ -176,8 +176,8 @@ class __$$UnauthorizedRequestCopyWithImpl<$Res> /// @nodoc -class _$UnauthorizedRequest implements UnauthorizedRequest { - const _$UnauthorizedRequest(this.body); +class _$UnauthorizedRequestImpl implements UnauthorizedRequest { + const _$UnauthorizedRequestImpl(this.body); @override final dynamic body; @@ -188,10 +188,10 @@ class _$UnauthorizedRequest implements UnauthorizedRequest { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$UnauthorizedRequest && + other is _$UnauthorizedRequestImpl && const DeepCollectionEquality().equals(other.body, body)); } @@ -202,8 +202,8 @@ class _$UnauthorizedRequest implements UnauthorizedRequest { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$UnauthorizedRequestCopyWith<_$UnauthorizedRequest> get copyWith => - __$$UnauthorizedRequestCopyWithImpl<_$UnauthorizedRequest>( + _$$UnauthorizedRequestImplCopyWith<_$UnauthorizedRequestImpl> get copyWith => + __$$UnauthorizedRequestImplCopyWithImpl<_$UnauthorizedRequestImpl>( this, _$identity); @override @@ -342,34 +342,35 @@ class _$UnauthorizedRequest implements UnauthorizedRequest { } abstract class UnauthorizedRequest implements NetworkException { - const factory UnauthorizedRequest(final dynamic body) = _$UnauthorizedRequest; + const factory UnauthorizedRequest(final dynamic body) = + _$UnauthorizedRequestImpl; dynamic get body; @JsonKey(ignore: true) - _$$UnauthorizedRequestCopyWith<_$UnauthorizedRequest> get copyWith => + _$$UnauthorizedRequestImplCopyWith<_$UnauthorizedRequestImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$BadRequestCopyWith<$Res> { - factory _$$BadRequestCopyWith( - _$BadRequest value, $Res Function(_$BadRequest) then) = - __$$BadRequestCopyWithImpl<$Res>; +abstract class _$$BadRequestImplCopyWith<$Res> { + factory _$$BadRequestImplCopyWith( + _$BadRequestImpl value, $Res Function(_$BadRequestImpl) then) = + __$$BadRequestImplCopyWithImpl<$Res>; } /// @nodoc -class __$$BadRequestCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$BadRequest> - implements _$$BadRequestCopyWith<$Res> { - __$$BadRequestCopyWithImpl( - _$BadRequest _value, $Res Function(_$BadRequest) _then) +class __$$BadRequestImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$BadRequestImpl> + implements _$$BadRequestImplCopyWith<$Res> { + __$$BadRequestImplCopyWithImpl( + _$BadRequestImpl _value, $Res Function(_$BadRequestImpl) _then) : super(_value, _then); } /// @nodoc -class _$BadRequest implements BadRequest { - const _$BadRequest(); +class _$BadRequestImpl implements BadRequest { + const _$BadRequestImpl(); @override String toString() { @@ -377,9 +378,9 @@ class _$BadRequest implements BadRequest { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$BadRequest); + (other.runtimeType == runtimeType && other is _$BadRequestImpl); } @override @@ -521,23 +522,24 @@ class _$BadRequest implements BadRequest { } abstract class BadRequest implements NetworkException { - const factory BadRequest() = _$BadRequest; + const factory BadRequest() = _$BadRequestImpl; } /// @nodoc -abstract class _$$NotFoundCopyWith<$Res> { - factory _$$NotFoundCopyWith( - _$NotFound value, $Res Function(_$NotFound) then) = - __$$NotFoundCopyWithImpl<$Res>; +abstract class _$$NotFoundImplCopyWith<$Res> { + factory _$$NotFoundImplCopyWith( + _$NotFoundImpl value, $Res Function(_$NotFoundImpl) then) = + __$$NotFoundImplCopyWithImpl<$Res>; @useResult $Res call({String reason}); } /// @nodoc -class __$$NotFoundCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$NotFound> - implements _$$NotFoundCopyWith<$Res> { - __$$NotFoundCopyWithImpl(_$NotFound _value, $Res Function(_$NotFound) _then) +class __$$NotFoundImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$NotFoundImpl> + implements _$$NotFoundImplCopyWith<$Res> { + __$$NotFoundImplCopyWithImpl( + _$NotFoundImpl _value, $Res Function(_$NotFoundImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -545,7 +547,7 @@ class __$$NotFoundCopyWithImpl<$Res> $Res call({ Object? reason = null, }) { - return _then(_$NotFound( + return _then(_$NotFoundImpl( null == reason ? _value.reason : reason // ignore: cast_nullable_to_non_nullable @@ -556,8 +558,8 @@ class __$$NotFoundCopyWithImpl<$Res> /// @nodoc -class _$NotFound implements NotFound { - const _$NotFound(this.reason); +class _$NotFoundImpl implements NotFound { + const _$NotFoundImpl(this.reason); @override final String reason; @@ -568,10 +570,10 @@ class _$NotFound implements NotFound { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$NotFound && + other is _$NotFoundImpl && (identical(other.reason, reason) || other.reason == reason)); } @@ -581,8 +583,8 @@ class _$NotFound implements NotFound { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$NotFoundCopyWith<_$NotFound> get copyWith => - __$$NotFoundCopyWithImpl<_$NotFound>(this, _$identity); + _$$NotFoundImplCopyWith<_$NotFoundImpl> get copyWith => + __$$NotFoundImplCopyWithImpl<_$NotFoundImpl>(this, _$identity); @override @optionalTypeArgs @@ -720,34 +722,34 @@ class _$NotFound implements NotFound { } abstract class NotFound implements NetworkException { - const factory NotFound(final String reason) = _$NotFound; + const factory NotFound(final String reason) = _$NotFoundImpl; String get reason; @JsonKey(ignore: true) - _$$NotFoundCopyWith<_$NotFound> get copyWith => + _$$NotFoundImplCopyWith<_$NotFoundImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$MethodNotAllowedCopyWith<$Res> { - factory _$$MethodNotAllowedCopyWith( - _$MethodNotAllowed value, $Res Function(_$MethodNotAllowed) then) = - __$$MethodNotAllowedCopyWithImpl<$Res>; +abstract class _$$MethodNotAllowedImplCopyWith<$Res> { + factory _$$MethodNotAllowedImplCopyWith(_$MethodNotAllowedImpl value, + $Res Function(_$MethodNotAllowedImpl) then) = + __$$MethodNotAllowedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$MethodNotAllowedCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$MethodNotAllowed> - implements _$$MethodNotAllowedCopyWith<$Res> { - __$$MethodNotAllowedCopyWithImpl( - _$MethodNotAllowed _value, $Res Function(_$MethodNotAllowed) _then) +class __$$MethodNotAllowedImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$MethodNotAllowedImpl> + implements _$$MethodNotAllowedImplCopyWith<$Res> { + __$$MethodNotAllowedImplCopyWithImpl(_$MethodNotAllowedImpl _value, + $Res Function(_$MethodNotAllowedImpl) _then) : super(_value, _then); } /// @nodoc -class _$MethodNotAllowed implements MethodNotAllowed { - const _$MethodNotAllowed(); +class _$MethodNotAllowedImpl implements MethodNotAllowed { + const _$MethodNotAllowedImpl(); @override String toString() { @@ -755,9 +757,9 @@ class _$MethodNotAllowed implements MethodNotAllowed { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$MethodNotAllowed); + (other.runtimeType == runtimeType && other is _$MethodNotAllowedImpl); } @override @@ -899,29 +901,29 @@ class _$MethodNotAllowed implements MethodNotAllowed { } abstract class MethodNotAllowed implements NetworkException { - const factory MethodNotAllowed() = _$MethodNotAllowed; + const factory MethodNotAllowed() = _$MethodNotAllowedImpl; } /// @nodoc -abstract class _$$NotAcceptableCopyWith<$Res> { - factory _$$NotAcceptableCopyWith( - _$NotAcceptable value, $Res Function(_$NotAcceptable) then) = - __$$NotAcceptableCopyWithImpl<$Res>; +abstract class _$$NotAcceptableImplCopyWith<$Res> { + factory _$$NotAcceptableImplCopyWith( + _$NotAcceptableImpl value, $Res Function(_$NotAcceptableImpl) then) = + __$$NotAcceptableImplCopyWithImpl<$Res>; } /// @nodoc -class __$$NotAcceptableCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$NotAcceptable> - implements _$$NotAcceptableCopyWith<$Res> { - __$$NotAcceptableCopyWithImpl( - _$NotAcceptable _value, $Res Function(_$NotAcceptable) _then) +class __$$NotAcceptableImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$NotAcceptableImpl> + implements _$$NotAcceptableImplCopyWith<$Res> { + __$$NotAcceptableImplCopyWithImpl( + _$NotAcceptableImpl _value, $Res Function(_$NotAcceptableImpl) _then) : super(_value, _then); } /// @nodoc -class _$NotAcceptable implements NotAcceptable { - const _$NotAcceptable(); +class _$NotAcceptableImpl implements NotAcceptable { + const _$NotAcceptableImpl(); @override String toString() { @@ -929,9 +931,9 @@ class _$NotAcceptable implements NotAcceptable { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$NotAcceptable); + (other.runtimeType == runtimeType && other is _$NotAcceptableImpl); } @override @@ -1073,28 +1075,29 @@ class _$NotAcceptable implements NotAcceptable { } abstract class NotAcceptable implements NetworkException { - const factory NotAcceptable() = _$NotAcceptable; + const factory NotAcceptable() = _$NotAcceptableImpl; } /// @nodoc -abstract class _$$ConflictCopyWith<$Res> { - factory _$$ConflictCopyWith( - _$Conflict value, $Res Function(_$Conflict) then) = - __$$ConflictCopyWithImpl<$Res>; +abstract class _$$ConflictImplCopyWith<$Res> { + factory _$$ConflictImplCopyWith( + _$ConflictImpl value, $Res Function(_$ConflictImpl) then) = + __$$ConflictImplCopyWithImpl<$Res>; } /// @nodoc -class __$$ConflictCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$Conflict> - implements _$$ConflictCopyWith<$Res> { - __$$ConflictCopyWithImpl(_$Conflict _value, $Res Function(_$Conflict) _then) +class __$$ConflictImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$ConflictImpl> + implements _$$ConflictImplCopyWith<$Res> { + __$$ConflictImplCopyWithImpl( + _$ConflictImpl _value, $Res Function(_$ConflictImpl) _then) : super(_value, _then); } /// @nodoc -class _$Conflict implements Conflict { - const _$Conflict(); +class _$ConflictImpl implements Conflict { + const _$ConflictImpl(); @override String toString() { @@ -1102,9 +1105,9 @@ class _$Conflict implements Conflict { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$Conflict); + (other.runtimeType == runtimeType && other is _$ConflictImpl); } @override @@ -1246,29 +1249,29 @@ class _$Conflict implements Conflict { } abstract class Conflict implements NetworkException { - const factory Conflict() = _$Conflict; + const factory Conflict() = _$ConflictImpl; } /// @nodoc -abstract class _$$InternalServerErrorCopyWith<$Res> { - factory _$$InternalServerErrorCopyWith(_$InternalServerError value, - $Res Function(_$InternalServerError) then) = - __$$InternalServerErrorCopyWithImpl<$Res>; +abstract class _$$InternalServerErrorImplCopyWith<$Res> { + factory _$$InternalServerErrorImplCopyWith(_$InternalServerErrorImpl value, + $Res Function(_$InternalServerErrorImpl) then) = + __$$InternalServerErrorImplCopyWithImpl<$Res>; } /// @nodoc -class __$$InternalServerErrorCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$InternalServerError> - implements _$$InternalServerErrorCopyWith<$Res> { - __$$InternalServerErrorCopyWithImpl( - _$InternalServerError _value, $Res Function(_$InternalServerError) _then) +class __$$InternalServerErrorImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$InternalServerErrorImpl> + implements _$$InternalServerErrorImplCopyWith<$Res> { + __$$InternalServerErrorImplCopyWithImpl(_$InternalServerErrorImpl _value, + $Res Function(_$InternalServerErrorImpl) _then) : super(_value, _then); } /// @nodoc -class _$InternalServerError implements InternalServerError { - const _$InternalServerError(); +class _$InternalServerErrorImpl implements InternalServerError { + const _$InternalServerErrorImpl(); @override String toString() { @@ -1276,9 +1279,10 @@ class _$InternalServerError implements InternalServerError { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$InternalServerError); + (other.runtimeType == runtimeType && + other is _$InternalServerErrorImpl); } @override @@ -1420,29 +1424,29 @@ class _$InternalServerError implements InternalServerError { } abstract class InternalServerError implements NetworkException { - const factory InternalServerError() = _$InternalServerError; + const factory InternalServerError() = _$InternalServerErrorImpl; } /// @nodoc -abstract class _$$NotImplementedCopyWith<$Res> { - factory _$$NotImplementedCopyWith( - _$NotImplemented value, $Res Function(_$NotImplemented) then) = - __$$NotImplementedCopyWithImpl<$Res>; +abstract class _$$NotImplementedImplCopyWith<$Res> { + factory _$$NotImplementedImplCopyWith(_$NotImplementedImpl value, + $Res Function(_$NotImplementedImpl) then) = + __$$NotImplementedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$NotImplementedCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$NotImplemented> - implements _$$NotImplementedCopyWith<$Res> { - __$$NotImplementedCopyWithImpl( - _$NotImplemented _value, $Res Function(_$NotImplemented) _then) +class __$$NotImplementedImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$NotImplementedImpl> + implements _$$NotImplementedImplCopyWith<$Res> { + __$$NotImplementedImplCopyWithImpl( + _$NotImplementedImpl _value, $Res Function(_$NotImplementedImpl) _then) : super(_value, _then); } /// @nodoc -class _$NotImplemented implements NotImplemented { - const _$NotImplemented(); +class _$NotImplementedImpl implements NotImplemented { + const _$NotImplementedImpl(); @override String toString() { @@ -1450,9 +1454,9 @@ class _$NotImplemented implements NotImplemented { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$NotImplemented); + (other.runtimeType == runtimeType && other is _$NotImplementedImpl); } @override @@ -1594,29 +1598,29 @@ class _$NotImplemented implements NotImplemented { } abstract class NotImplemented implements NetworkException { - const factory NotImplemented() = _$NotImplemented; + const factory NotImplemented() = _$NotImplementedImpl; } /// @nodoc -abstract class _$$ServiceUnavailableCopyWith<$Res> { - factory _$$ServiceUnavailableCopyWith(_$ServiceUnavailable value, - $Res Function(_$ServiceUnavailable) then) = - __$$ServiceUnavailableCopyWithImpl<$Res>; +abstract class _$$ServiceUnavailableImplCopyWith<$Res> { + factory _$$ServiceUnavailableImplCopyWith(_$ServiceUnavailableImpl value, + $Res Function(_$ServiceUnavailableImpl) then) = + __$$ServiceUnavailableImplCopyWithImpl<$Res>; } /// @nodoc -class __$$ServiceUnavailableCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$ServiceUnavailable> - implements _$$ServiceUnavailableCopyWith<$Res> { - __$$ServiceUnavailableCopyWithImpl( - _$ServiceUnavailable _value, $Res Function(_$ServiceUnavailable) _then) +class __$$ServiceUnavailableImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$ServiceUnavailableImpl> + implements _$$ServiceUnavailableImplCopyWith<$Res> { + __$$ServiceUnavailableImplCopyWithImpl(_$ServiceUnavailableImpl _value, + $Res Function(_$ServiceUnavailableImpl) _then) : super(_value, _then); } /// @nodoc -class _$ServiceUnavailable implements ServiceUnavailable { - const _$ServiceUnavailable(); +class _$ServiceUnavailableImpl implements ServiceUnavailable { + const _$ServiceUnavailableImpl(); @override String toString() { @@ -1624,9 +1628,9 @@ class _$ServiceUnavailable implements ServiceUnavailable { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$ServiceUnavailable); + (other.runtimeType == runtimeType && other is _$ServiceUnavailableImpl); } @override @@ -1768,29 +1772,29 @@ class _$ServiceUnavailable implements ServiceUnavailable { } abstract class ServiceUnavailable implements NetworkException { - const factory ServiceUnavailable() = _$ServiceUnavailable; + const factory ServiceUnavailable() = _$ServiceUnavailableImpl; } /// @nodoc -abstract class _$$NoInternetConnectionCopyWith<$Res> { - factory _$$NoInternetConnectionCopyWith(_$NoInternetConnection value, - $Res Function(_$NoInternetConnection) then) = - __$$NoInternetConnectionCopyWithImpl<$Res>; +abstract class _$$NoInternetConnectionImplCopyWith<$Res> { + factory _$$NoInternetConnectionImplCopyWith(_$NoInternetConnectionImpl value, + $Res Function(_$NoInternetConnectionImpl) then) = + __$$NoInternetConnectionImplCopyWithImpl<$Res>; } /// @nodoc -class __$$NoInternetConnectionCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$NoInternetConnection> - implements _$$NoInternetConnectionCopyWith<$Res> { - __$$NoInternetConnectionCopyWithImpl(_$NoInternetConnection _value, - $Res Function(_$NoInternetConnection) _then) +class __$$NoInternetConnectionImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$NoInternetConnectionImpl> + implements _$$NoInternetConnectionImplCopyWith<$Res> { + __$$NoInternetConnectionImplCopyWithImpl(_$NoInternetConnectionImpl _value, + $Res Function(_$NoInternetConnectionImpl) _then) : super(_value, _then); } /// @nodoc -class _$NoInternetConnection implements NoInternetConnection { - const _$NoInternetConnection(); +class _$NoInternetConnectionImpl implements NoInternetConnection { + const _$NoInternetConnectionImpl(); @override String toString() { @@ -1798,9 +1802,10 @@ class _$NoInternetConnection implements NoInternetConnection { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$NoInternetConnection); + (other.runtimeType == runtimeType && + other is _$NoInternetConnectionImpl); } @override @@ -1942,29 +1947,29 @@ class _$NoInternetConnection implements NoInternetConnection { } abstract class NoInternetConnection implements NetworkException { - const factory NoInternetConnection() = _$NoInternetConnection; + const factory NoInternetConnection() = _$NoInternetConnectionImpl; } /// @nodoc -abstract class _$$FormatExceptionCopyWith<$Res> { - factory _$$FormatExceptionCopyWith( - _$FormatException value, $Res Function(_$FormatException) then) = - __$$FormatExceptionCopyWithImpl<$Res>; +abstract class _$$FormatExceptionImplCopyWith<$Res> { + factory _$$FormatExceptionImplCopyWith(_$FormatExceptionImpl value, + $Res Function(_$FormatExceptionImpl) then) = + __$$FormatExceptionImplCopyWithImpl<$Res>; } /// @nodoc -class __$$FormatExceptionCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$FormatException> - implements _$$FormatExceptionCopyWith<$Res> { - __$$FormatExceptionCopyWithImpl( - _$FormatException _value, $Res Function(_$FormatException) _then) +class __$$FormatExceptionImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$FormatExceptionImpl> + implements _$$FormatExceptionImplCopyWith<$Res> { + __$$FormatExceptionImplCopyWithImpl( + _$FormatExceptionImpl _value, $Res Function(_$FormatExceptionImpl) _then) : super(_value, _then); } /// @nodoc -class _$FormatException implements FormatException { - const _$FormatException(); +class _$FormatExceptionImpl implements FormatException { + const _$FormatExceptionImpl(); @override String toString() { @@ -1972,9 +1977,9 @@ class _$FormatException implements FormatException { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$FormatException); + (other.runtimeType == runtimeType && other is _$FormatExceptionImpl); } @override @@ -2116,29 +2121,29 @@ class _$FormatException implements FormatException { } abstract class FormatException implements NetworkException { - const factory FormatException() = _$FormatException; + const factory FormatException() = _$FormatExceptionImpl; } /// @nodoc -abstract class _$$UnableToProcessCopyWith<$Res> { - factory _$$UnableToProcessCopyWith( - _$UnableToProcess value, $Res Function(_$UnableToProcess) then) = - __$$UnableToProcessCopyWithImpl<$Res>; +abstract class _$$UnableToProcessImplCopyWith<$Res> { + factory _$$UnableToProcessImplCopyWith(_$UnableToProcessImpl value, + $Res Function(_$UnableToProcessImpl) then) = + __$$UnableToProcessImplCopyWithImpl<$Res>; } /// @nodoc -class __$$UnableToProcessCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$UnableToProcess> - implements _$$UnableToProcessCopyWith<$Res> { - __$$UnableToProcessCopyWithImpl( - _$UnableToProcess _value, $Res Function(_$UnableToProcess) _then) +class __$$UnableToProcessImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$UnableToProcessImpl> + implements _$$UnableToProcessImplCopyWith<$Res> { + __$$UnableToProcessImplCopyWithImpl( + _$UnableToProcessImpl _value, $Res Function(_$UnableToProcessImpl) _then) : super(_value, _then); } /// @nodoc -class _$UnableToProcess implements UnableToProcess { - const _$UnableToProcess(); +class _$UnableToProcessImpl implements UnableToProcess { + const _$UnableToProcessImpl(); @override String toString() { @@ -2146,9 +2151,9 @@ class _$UnableToProcess implements UnableToProcess { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$UnableToProcess); + (other.runtimeType == runtimeType && other is _$UnableToProcessImpl); } @override @@ -2290,24 +2295,24 @@ class _$UnableToProcess implements UnableToProcess { } abstract class UnableToProcess implements NetworkException { - const factory UnableToProcess() = _$UnableToProcess; + const factory UnableToProcess() = _$UnableToProcessImpl; } /// @nodoc -abstract class _$$DefaultErrorCopyWith<$Res> { - factory _$$DefaultErrorCopyWith( - _$DefaultError value, $Res Function(_$DefaultError) then) = - __$$DefaultErrorCopyWithImpl<$Res>; +abstract class _$$DefaultErrorImplCopyWith<$Res> { + factory _$$DefaultErrorImplCopyWith( + _$DefaultErrorImpl value, $Res Function(_$DefaultErrorImpl) then) = + __$$DefaultErrorImplCopyWithImpl<$Res>; @useResult $Res call({int? code, String? error}); } /// @nodoc -class __$$DefaultErrorCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$DefaultError> - implements _$$DefaultErrorCopyWith<$Res> { - __$$DefaultErrorCopyWithImpl( - _$DefaultError _value, $Res Function(_$DefaultError) _then) +class __$$DefaultErrorImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$DefaultErrorImpl> + implements _$$DefaultErrorImplCopyWith<$Res> { + __$$DefaultErrorImplCopyWithImpl( + _$DefaultErrorImpl _value, $Res Function(_$DefaultErrorImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2316,7 +2321,7 @@ class __$$DefaultErrorCopyWithImpl<$Res> Object? code = freezed, Object? error = freezed, }) { - return _then(_$DefaultError( + return _then(_$DefaultErrorImpl( freezed == code ? _value.code : code // ignore: cast_nullable_to_non_nullable @@ -2331,8 +2336,8 @@ class __$$DefaultErrorCopyWithImpl<$Res> /// @nodoc -class _$DefaultError implements DefaultError { - const _$DefaultError(this.code, this.error); +class _$DefaultErrorImpl implements DefaultError { + const _$DefaultErrorImpl(this.code, this.error); @override final int? code; @@ -2345,10 +2350,10 @@ class _$DefaultError implements DefaultError { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$DefaultError && + other is _$DefaultErrorImpl && (identical(other.code, code) || other.code == code) && (identical(other.error, error) || other.error == error)); } @@ -2359,8 +2364,8 @@ class _$DefaultError implements DefaultError { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$DefaultErrorCopyWith<_$DefaultError> get copyWith => - __$$DefaultErrorCopyWithImpl<_$DefaultError>(this, _$identity); + _$$DefaultErrorImplCopyWith<_$DefaultErrorImpl> get copyWith => + __$$DefaultErrorImplCopyWithImpl<_$DefaultErrorImpl>(this, _$identity); @override @optionalTypeArgs @@ -2499,35 +2504,35 @@ class _$DefaultError implements DefaultError { abstract class DefaultError implements NetworkException { const factory DefaultError(final int? code, final String? error) = - _$DefaultError; + _$DefaultErrorImpl; int? get code; String? get error; @JsonKey(ignore: true) - _$$DefaultErrorCopyWith<_$DefaultError> get copyWith => + _$$DefaultErrorImplCopyWith<_$DefaultErrorImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$UnexpectedErrorCopyWith<$Res> { - factory _$$UnexpectedErrorCopyWith( - _$UnexpectedError value, $Res Function(_$UnexpectedError) then) = - __$$UnexpectedErrorCopyWithImpl<$Res>; +abstract class _$$UnexpectedErrorImplCopyWith<$Res> { + factory _$$UnexpectedErrorImplCopyWith(_$UnexpectedErrorImpl value, + $Res Function(_$UnexpectedErrorImpl) then) = + __$$UnexpectedErrorImplCopyWithImpl<$Res>; } /// @nodoc -class __$$UnexpectedErrorCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$UnexpectedError> - implements _$$UnexpectedErrorCopyWith<$Res> { - __$$UnexpectedErrorCopyWithImpl( - _$UnexpectedError _value, $Res Function(_$UnexpectedError) _then) +class __$$UnexpectedErrorImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$UnexpectedErrorImpl> + implements _$$UnexpectedErrorImplCopyWith<$Res> { + __$$UnexpectedErrorImplCopyWithImpl( + _$UnexpectedErrorImpl _value, $Res Function(_$UnexpectedErrorImpl) _then) : super(_value, _then); } /// @nodoc -class _$UnexpectedError implements UnexpectedError { - const _$UnexpectedError(); +class _$UnexpectedErrorImpl implements UnexpectedError { + const _$UnexpectedErrorImpl(); @override String toString() { @@ -2535,9 +2540,9 @@ class _$UnexpectedError implements UnexpectedError { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$UnexpectedError); + (other.runtimeType == runtimeType && other is _$UnexpectedErrorImpl); } @override @@ -2679,5 +2684,5 @@ class _$UnexpectedError implements UnexpectedError { } abstract class UnexpectedError implements NetworkException { - const factory UnexpectedError() = _$UnexpectedError; + const factory UnexpectedError() = _$UnexpectedErrorImpl; } diff --git a/lib/core/model/project.freezed.dart b/lib/core/model/project.freezed.dart index e5847045..2e746eb2 100644 --- a/lib/core/model/project.freezed.dart +++ b/lib/core/model/project.freezed.dart @@ -12,7 +12,7 @@ part of 'project.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); Project _$ProjectFromJson(Map json) { return _Project.fromJson(json); @@ -96,10 +96,10 @@ class _$ProjectCopyWithImpl<$Res, $Val extends Project> } /// @nodoc -abstract class _$$_ProjectCopyWith<$Res> implements $ProjectCopyWith<$Res> { - factory _$$_ProjectCopyWith( - _$_Project value, $Res Function(_$_Project) then) = - __$$_ProjectCopyWithImpl<$Res>; +abstract class _$$ProjectImplCopyWith<$Res> implements $ProjectCopyWith<$Res> { + factory _$$ProjectImplCopyWith( + _$ProjectImpl value, $Res Function(_$ProjectImpl) then) = + __$$ProjectImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -112,10 +112,11 @@ abstract class _$$_ProjectCopyWith<$Res> implements $ProjectCopyWith<$Res> { } /// @nodoc -class __$$_ProjectCopyWithImpl<$Res> - extends _$ProjectCopyWithImpl<$Res, _$_Project> - implements _$$_ProjectCopyWith<$Res> { - __$$_ProjectCopyWithImpl(_$_Project _value, $Res Function(_$_Project) _then) +class __$$ProjectImplCopyWithImpl<$Res> + extends _$ProjectCopyWithImpl<$Res, _$ProjectImpl> + implements _$$ProjectImplCopyWith<$Res> { + __$$ProjectImplCopyWithImpl( + _$ProjectImpl _value, $Res Function(_$ProjectImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -128,7 +129,7 @@ class __$$_ProjectCopyWithImpl<$Res> Object? imageUrl = null, Object? language = null, }) { - return _then(_$_Project( + return _then(_$ProjectImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -160,8 +161,8 @@ class __$$_ProjectCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_Project implements _Project { - _$_Project( +class _$ProjectImpl implements _Project { + _$ProjectImpl( {required this.id, required this.name, required this.description, @@ -169,8 +170,8 @@ class _$_Project implements _Project { required this.imageUrl, required this.language}); - factory _$_Project.fromJson(Map json) => - _$$_ProjectFromJson(json); + factory _$ProjectImpl.fromJson(Map json) => + _$$ProjectImplFromJson(json); @override final int id; @@ -191,10 +192,10 @@ class _$_Project implements _Project { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Project && + other is _$ProjectImpl && (identical(other.id, id) || other.id == id) && (identical(other.name, name) || other.name == name) && (identical(other.description, description) || @@ -214,12 +215,12 @@ class _$_Project implements _Project { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ProjectCopyWith<_$_Project> get copyWith => - __$$_ProjectCopyWithImpl<_$_Project>(this, _$identity); + _$$ProjectImplCopyWith<_$ProjectImpl> get copyWith => + __$$ProjectImplCopyWithImpl<_$ProjectImpl>(this, _$identity); @override Map toJson() { - return _$$_ProjectToJson( + return _$$ProjectImplToJson( this, ); } @@ -232,9 +233,9 @@ abstract class _Project implements Project { required final String description, required final String url, required final String imageUrl, - required final String language}) = _$_Project; + required final String language}) = _$ProjectImpl; - factory _Project.fromJson(Map json) = _$_Project.fromJson; + factory _Project.fromJson(Map json) = _$ProjectImpl.fromJson; @override int get id; @@ -250,6 +251,6 @@ abstract class _Project implements Project { String get language; @override @JsonKey(ignore: true) - _$$_ProjectCopyWith<_$_Project> get copyWith => + _$$ProjectImplCopyWith<_$ProjectImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/core/model/project.g.dart b/lib/core/model/project.g.dart index 8cef53b2..364de6a1 100644 --- a/lib/core/model/project.g.dart +++ b/lib/core/model/project.g.dart @@ -6,8 +6,9 @@ part of 'project.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_Project _$$_ProjectFromJson(Map json) => _$_Project( - id: json['id'] as int, +_$ProjectImpl _$$ProjectImplFromJson(Map json) => + _$ProjectImpl( + id: (json['id'] as num).toInt(), name: json['name'] as String, description: json['description'] as String, url: json['url'] as String, @@ -15,7 +16,7 @@ _$_Project _$$_ProjectFromJson(Map json) => _$_Project( language: json['language'] as String, ); -Map _$$_ProjectToJson(_$_Project instance) => +Map _$$ProjectImplToJson(_$ProjectImpl instance) => { 'id': instance.id, 'name': instance.name, diff --git a/lib/core/model/service/auth_models.freezed.dart b/lib/core/model/service/auth_models.freezed.dart index f0800500..77fd7781 100644 --- a/lib/core/model/service/auth_models.freezed.dart +++ b/lib/core/model/service/auth_models.freezed.dart @@ -12,7 +12,7 @@ part of 'auth_models.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); SignInResponse _$SignInResponseFromJson(Map json) { return _SignInResponse.fromJson(json); @@ -78,11 +78,11 @@ class _$SignInResponseCopyWithImpl<$Res, $Val extends SignInResponse> } /// @nodoc -abstract class _$$_SignInResponseCopyWith<$Res> +abstract class _$$SignInResponseImplCopyWith<$Res> implements $SignInResponseCopyWith<$Res> { - factory _$$_SignInResponseCopyWith( - _$_SignInResponse value, $Res Function(_$_SignInResponse) then) = - __$$_SignInResponseCopyWithImpl<$Res>; + factory _$$SignInResponseImplCopyWith(_$SignInResponseImpl value, + $Res Function(_$SignInResponseImpl) then) = + __$$SignInResponseImplCopyWithImpl<$Res>; @override @useResult $Res call({String accessToken, User user}); @@ -92,11 +92,11 @@ abstract class _$$_SignInResponseCopyWith<$Res> } /// @nodoc -class __$$_SignInResponseCopyWithImpl<$Res> - extends _$SignInResponseCopyWithImpl<$Res, _$_SignInResponse> - implements _$$_SignInResponseCopyWith<$Res> { - __$$_SignInResponseCopyWithImpl( - _$_SignInResponse _value, $Res Function(_$_SignInResponse) _then) +class __$$SignInResponseImplCopyWithImpl<$Res> + extends _$SignInResponseCopyWithImpl<$Res, _$SignInResponseImpl> + implements _$$SignInResponseImplCopyWith<$Res> { + __$$SignInResponseImplCopyWithImpl( + _$SignInResponseImpl _value, $Res Function(_$SignInResponseImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -105,7 +105,7 @@ class __$$_SignInResponseCopyWithImpl<$Res> Object? accessToken = null, Object? user = null, }) { - return _then(_$_SignInResponse( + return _then(_$SignInResponseImpl( accessToken: null == accessToken ? _value.accessToken : accessToken // ignore: cast_nullable_to_non_nullable @@ -121,11 +121,11 @@ class __$$_SignInResponseCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_SignInResponse implements _SignInResponse { - _$_SignInResponse({required this.accessToken, required this.user}); +class _$SignInResponseImpl implements _SignInResponse { + _$SignInResponseImpl({required this.accessToken, required this.user}); - factory _$_SignInResponse.fromJson(Map json) => - _$$_SignInResponseFromJson(json); + factory _$SignInResponseImpl.fromJson(Map json) => + _$$SignInResponseImplFromJson(json); @override final String accessToken; @@ -138,10 +138,10 @@ class _$_SignInResponse implements _SignInResponse { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SignInResponse && + other is _$SignInResponseImpl && (identical(other.accessToken, accessToken) || other.accessToken == accessToken) && (identical(other.user, user) || other.user == user)); @@ -154,12 +154,13 @@ class _$_SignInResponse implements _SignInResponse { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SignInResponseCopyWith<_$_SignInResponse> get copyWith => - __$$_SignInResponseCopyWithImpl<_$_SignInResponse>(this, _$identity); + _$$SignInResponseImplCopyWith<_$SignInResponseImpl> get copyWith => + __$$SignInResponseImplCopyWithImpl<_$SignInResponseImpl>( + this, _$identity); @override Map toJson() { - return _$$_SignInResponseToJson( + return _$$SignInResponseImplToJson( this, ); } @@ -168,10 +169,10 @@ class _$_SignInResponse implements _SignInResponse { abstract class _SignInResponse implements SignInResponse { factory _SignInResponse( {required final String accessToken, - required final User user}) = _$_SignInResponse; + required final User user}) = _$SignInResponseImpl; factory _SignInResponse.fromJson(Map json) = - _$_SignInResponse.fromJson; + _$SignInResponseImpl.fromJson; @override String get accessToken; @@ -179,7 +180,7 @@ abstract class _SignInResponse implements SignInResponse { User get user; @override @JsonKey(ignore: true) - _$$_SignInResponseCopyWith<_$_SignInResponse> get copyWith => + _$$SignInResponseImplCopyWith<_$SignInResponseImpl> get copyWith => throw _privateConstructorUsedError; } @@ -241,11 +242,11 @@ class _$SignInRequestCopyWithImpl<$Res, $Val extends SignInRequest> } /// @nodoc -abstract class _$$_SignInRequestCopyWith<$Res> +abstract class _$$SignInRequestImplCopyWith<$Res> implements $SignInRequestCopyWith<$Res> { - factory _$$_SignInRequestCopyWith( - _$_SignInRequest value, $Res Function(_$_SignInRequest) then) = - __$$_SignInRequestCopyWithImpl<$Res>; + factory _$$SignInRequestImplCopyWith( + _$SignInRequestImpl value, $Res Function(_$SignInRequestImpl) then) = + __$$SignInRequestImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -254,11 +255,11 @@ abstract class _$$_SignInRequestCopyWith<$Res> } /// @nodoc -class __$$_SignInRequestCopyWithImpl<$Res> - extends _$SignInRequestCopyWithImpl<$Res, _$_SignInRequest> - implements _$$_SignInRequestCopyWith<$Res> { - __$$_SignInRequestCopyWithImpl( - _$_SignInRequest _value, $Res Function(_$_SignInRequest) _then) +class __$$SignInRequestImplCopyWithImpl<$Res> + extends _$SignInRequestCopyWithImpl<$Res, _$SignInRequestImpl> + implements _$$SignInRequestImplCopyWith<$Res> { + __$$SignInRequestImplCopyWithImpl( + _$SignInRequestImpl _value, $Res Function(_$SignInRequestImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -267,7 +268,7 @@ class __$$_SignInRequestCopyWithImpl<$Res> Object? email = null, Object? password = null, }) { - return _then(_$_SignInRequest( + return _then(_$SignInRequestImpl( email: null == email ? _value.email : email // ignore: cast_nullable_to_non_nullable @@ -283,13 +284,13 @@ class __$$_SignInRequestCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_SignInRequest implements _SignInRequest { - _$_SignInRequest( +class _$SignInRequestImpl implements _SignInRequest { + _$SignInRequestImpl( {@JsonKey(name: 'email') required this.email, @JsonKey(name: 'password') required this.password}); - factory _$_SignInRequest.fromJson(Map json) => - _$$_SignInRequestFromJson(json); + factory _$SignInRequestImpl.fromJson(Map json) => + _$$SignInRequestImplFromJson(json); @override @JsonKey(name: 'email') @@ -304,10 +305,10 @@ class _$_SignInRequest implements _SignInRequest { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SignInRequest && + other is _$SignInRequestImpl && (identical(other.email, email) || other.email == email) && (identical(other.password, password) || other.password == password)); @@ -320,12 +321,12 @@ class _$_SignInRequest implements _SignInRequest { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SignInRequestCopyWith<_$_SignInRequest> get copyWith => - __$$_SignInRequestCopyWithImpl<_$_SignInRequest>(this, _$identity); + _$$SignInRequestImplCopyWith<_$SignInRequestImpl> get copyWith => + __$$SignInRequestImplCopyWithImpl<_$SignInRequestImpl>(this, _$identity); @override Map toJson() { - return _$$_SignInRequestToJson( + return _$$SignInRequestImplToJson( this, ); } @@ -335,10 +336,10 @@ abstract class _SignInRequest implements SignInRequest { factory _SignInRequest( {@JsonKey(name: 'email') required final String email, @JsonKey(name: 'password') required final String password}) = - _$_SignInRequest; + _$SignInRequestImpl; factory _SignInRequest.fromJson(Map json) = - _$_SignInRequest.fromJson; + _$SignInRequestImpl.fromJson; @override @JsonKey(name: 'email') @@ -348,6 +349,6 @@ abstract class _SignInRequest implements SignInRequest { String get password; @override @JsonKey(ignore: true) - _$$_SignInRequestCopyWith<_$_SignInRequest> get copyWith => + _$$SignInRequestImplCopyWith<_$SignInRequestImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/core/model/service/auth_models.g.dart b/lib/core/model/service/auth_models.g.dart index c8775b0a..dcea6525 100644 --- a/lib/core/model/service/auth_models.g.dart +++ b/lib/core/model/service/auth_models.g.dart @@ -6,25 +6,26 @@ part of 'auth_models.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_SignInResponse _$$_SignInResponseFromJson(Map json) => - _$_SignInResponse( +_$SignInResponseImpl _$$SignInResponseImplFromJson(Map json) => + _$SignInResponseImpl( accessToken: json['access_token'] as String, user: User.fromJson(json['user'] as Map), ); -Map _$$_SignInResponseToJson(_$_SignInResponse instance) => +Map _$$SignInResponseImplToJson( + _$SignInResponseImpl instance) => { 'access_token': instance.accessToken, 'user': instance.user.toJson(), }; -_$_SignInRequest _$$_SignInRequestFromJson(Map json) => - _$_SignInRequest( +_$SignInRequestImpl _$$SignInRequestImplFromJson(Map json) => + _$SignInRequestImpl( email: json['email'] as String, password: json['password'] as String, ); -Map _$$_SignInRequestToJson(_$_SignInRequest instance) => +Map _$$SignInRequestImplToJson(_$SignInRequestImpl instance) => { 'email': instance.email, 'password': instance.password, diff --git a/lib/core/model/service/service_response.freezed.dart b/lib/core/model/service/service_response.freezed.dart index ff8750e0..0c97f12e 100644 --- a/lib/core/model/service/service_response.freezed.dart +++ b/lib/core/model/service/service_response.freezed.dart @@ -12,7 +12,7 @@ part of 'service_response.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); /// @nodoc mixin _$ServiceResponse { @@ -75,20 +75,20 @@ class _$ServiceResponseCopyWithImpl> } /// @nodoc -abstract class _$$ServiceResponseDataCopyWith { - factory _$$ServiceResponseDataCopyWith(_$ServiceResponseData value, - $Res Function(_$ServiceResponseData) then) = - __$$ServiceResponseDataCopyWithImpl; +abstract class _$$ServiceResponseDataImplCopyWith { + factory _$$ServiceResponseDataImplCopyWith(_$ServiceResponseDataImpl value, + $Res Function(_$ServiceResponseDataImpl) then) = + __$$ServiceResponseDataImplCopyWithImpl; @useResult $Res call({T data}); } /// @nodoc -class __$$ServiceResponseDataCopyWithImpl - extends _$ServiceResponseCopyWithImpl> - implements _$$ServiceResponseDataCopyWith { - __$$ServiceResponseDataCopyWithImpl(_$ServiceResponseData _value, - $Res Function(_$ServiceResponseData) _then) +class __$$ServiceResponseDataImplCopyWithImpl + extends _$ServiceResponseCopyWithImpl> + implements _$$ServiceResponseDataImplCopyWith { + __$$ServiceResponseDataImplCopyWithImpl(_$ServiceResponseDataImpl _value, + $Res Function(_$ServiceResponseDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -96,7 +96,7 @@ class __$$ServiceResponseDataCopyWithImpl $Res call({ Object? data = freezed, }) { - return _then(_$ServiceResponseData( + return _then(_$ServiceResponseDataImpl( freezed == data ? _value.data : data // ignore: cast_nullable_to_non_nullable @@ -107,8 +107,8 @@ class __$$ServiceResponseDataCopyWithImpl /// @nodoc -class _$ServiceResponseData implements ServiceResponseData { - const _$ServiceResponseData(this.data); +class _$ServiceResponseDataImpl implements ServiceResponseData { + const _$ServiceResponseDataImpl(this.data); @override final T data; @@ -119,10 +119,10 @@ class _$ServiceResponseData implements ServiceResponseData { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$ServiceResponseData && + other is _$ServiceResponseDataImpl && const DeepCollectionEquality().equals(other.data, data)); } @@ -133,9 +133,9 @@ class _$ServiceResponseData implements ServiceResponseData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ServiceResponseDataCopyWith> get copyWith => - __$$ServiceResponseDataCopyWithImpl>( - this, _$identity); + _$$ServiceResponseDataImplCopyWith> + get copyWith => __$$ServiceResponseDataImplCopyWithImpl>(this, _$identity); @override @optionalTypeArgs @@ -201,19 +201,21 @@ class _$ServiceResponseData implements ServiceResponseData { } abstract class ServiceResponseData implements ServiceResponse { - const factory ServiceResponseData(final T data) = _$ServiceResponseData; + const factory ServiceResponseData(final T data) = + _$ServiceResponseDataImpl; T get data; @JsonKey(ignore: true) - _$$ServiceResponseDataCopyWith> get copyWith => - throw _privateConstructorUsedError; + _$$ServiceResponseDataImplCopyWith> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$ServiceResponseErrorCopyWith { - factory _$$ServiceResponseErrorCopyWith(_$ServiceResponseError value, - $Res Function(_$ServiceResponseError) then) = - __$$ServiceResponseErrorCopyWithImpl; +abstract class _$$ServiceResponseErrorImplCopyWith { + factory _$$ServiceResponseErrorImplCopyWith( + _$ServiceResponseErrorImpl value, + $Res Function(_$ServiceResponseErrorImpl) then) = + __$$ServiceResponseErrorImplCopyWithImpl; @useResult $Res call({NetworkException error}); @@ -221,11 +223,12 @@ abstract class _$$ServiceResponseErrorCopyWith { } /// @nodoc -class __$$ServiceResponseErrorCopyWithImpl - extends _$ServiceResponseCopyWithImpl> - implements _$$ServiceResponseErrorCopyWith { - __$$ServiceResponseErrorCopyWithImpl(_$ServiceResponseError _value, - $Res Function(_$ServiceResponseError) _then) +class __$$ServiceResponseErrorImplCopyWithImpl + extends _$ServiceResponseCopyWithImpl> + implements _$$ServiceResponseErrorImplCopyWith { + __$$ServiceResponseErrorImplCopyWithImpl(_$ServiceResponseErrorImpl _value, + $Res Function(_$ServiceResponseErrorImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -233,7 +236,7 @@ class __$$ServiceResponseErrorCopyWithImpl $Res call({ Object? error = null, }) { - return _then(_$ServiceResponseError( + return _then(_$ServiceResponseErrorImpl( null == error ? _value.error : error // ignore: cast_nullable_to_non_nullable @@ -252,8 +255,8 @@ class __$$ServiceResponseErrorCopyWithImpl /// @nodoc -class _$ServiceResponseError implements ServiceResponseError { - const _$ServiceResponseError(this.error); +class _$ServiceResponseErrorImpl implements ServiceResponseError { + const _$ServiceResponseErrorImpl(this.error); @override final NetworkException error; @@ -264,10 +267,10 @@ class _$ServiceResponseError implements ServiceResponseError { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$ServiceResponseError && + other is _$ServiceResponseErrorImpl && (identical(other.error, error) || other.error == error)); } @@ -277,9 +280,9 @@ class _$ServiceResponseError implements ServiceResponseError { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ServiceResponseErrorCopyWith> get copyWith => - __$$ServiceResponseErrorCopyWithImpl>( - this, _$identity); + _$$ServiceResponseErrorImplCopyWith> + get copyWith => __$$ServiceResponseErrorImplCopyWithImpl>(this, _$identity); @override @optionalTypeArgs @@ -346,10 +349,10 @@ class _$ServiceResponseError implements ServiceResponseError { abstract class ServiceResponseError implements ServiceResponse { const factory ServiceResponseError(final NetworkException error) = - _$ServiceResponseError; + _$ServiceResponseErrorImpl; NetworkException get error; @JsonKey(ignore: true) - _$$ServiceResponseErrorCopyWith> get copyWith => - throw _privateConstructorUsedError; + _$$ServiceResponseErrorImplCopyWith> + get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/core/model/user.freezed.dart b/lib/core/model/user.freezed.dart index 56d291e3..8089ae15 100644 --- a/lib/core/model/user.freezed.dart +++ b/lib/core/model/user.freezed.dart @@ -12,7 +12,7 @@ part of 'user.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); User _$UserFromJson(Map json) { return _User.fromJson(json); @@ -66,18 +66,20 @@ class _$UserCopyWithImpl<$Res, $Val extends User> } /// @nodoc -abstract class _$$_UserCopyWith<$Res> implements $UserCopyWith<$Res> { - factory _$$_UserCopyWith(_$_User value, $Res Function(_$_User) then) = - __$$_UserCopyWithImpl<$Res>; +abstract class _$$UserImplCopyWith<$Res> implements $UserCopyWith<$Res> { + factory _$$UserImplCopyWith( + _$UserImpl value, $Res Function(_$UserImpl) then) = + __$$UserImplCopyWithImpl<$Res>; @override @useResult $Res call({String email, String? name}); } /// @nodoc -class __$$_UserCopyWithImpl<$Res> extends _$UserCopyWithImpl<$Res, _$_User> - implements _$$_UserCopyWith<$Res> { - __$$_UserCopyWithImpl(_$_User _value, $Res Function(_$_User) _then) +class __$$UserImplCopyWithImpl<$Res> + extends _$UserCopyWithImpl<$Res, _$UserImpl> + implements _$$UserImplCopyWith<$Res> { + __$$UserImplCopyWithImpl(_$UserImpl _value, $Res Function(_$UserImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -86,7 +88,7 @@ class __$$_UserCopyWithImpl<$Res> extends _$UserCopyWithImpl<$Res, _$_User> Object? email = null, Object? name = freezed, }) { - return _then(_$_User( + return _then(_$UserImpl( email: null == email ? _value.email : email // ignore: cast_nullable_to_non_nullable @@ -102,10 +104,11 @@ class __$$_UserCopyWithImpl<$Res> extends _$UserCopyWithImpl<$Res, _$_User> /// @nodoc @JsonSerializable() -class _$_User implements _User { - _$_User({required this.email, this.name}); +class _$UserImpl implements _User { + _$UserImpl({required this.email, this.name}); - factory _$_User.fromJson(Map json) => _$$_UserFromJson(json); + factory _$UserImpl.fromJson(Map json) => + _$$UserImplFromJson(json); @override final String email; @@ -118,10 +121,10 @@ class _$_User implements _User { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_User && + other is _$UserImpl && (identical(other.email, email) || other.email == email) && (identical(other.name, name) || other.name == name)); } @@ -133,21 +136,21 @@ class _$_User implements _User { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_UserCopyWith<_$_User> get copyWith => - __$$_UserCopyWithImpl<_$_User>(this, _$identity); + _$$UserImplCopyWith<_$UserImpl> get copyWith => + __$$UserImplCopyWithImpl<_$UserImpl>(this, _$identity); @override Map toJson() { - return _$$_UserToJson( + return _$$UserImplToJson( this, ); } } abstract class _User implements User { - factory _User({required final String email, final String? name}) = _$_User; + factory _User({required final String email, final String? name}) = _$UserImpl; - factory _User.fromJson(Map json) = _$_User.fromJson; + factory _User.fromJson(Map json) = _$UserImpl.fromJson; @override String get email; @@ -155,5 +158,6 @@ abstract class _User implements User { String? get name; @override @JsonKey(ignore: true) - _$$_UserCopyWith<_$_User> get copyWith => throw _privateConstructorUsedError; + _$$UserImplCopyWith<_$UserImpl> get copyWith => + throw _privateConstructorUsedError; } diff --git a/lib/core/model/user.g.dart b/lib/core/model/user.g.dart index 45882461..8e84a815 100644 --- a/lib/core/model/user.g.dart +++ b/lib/core/model/user.g.dart @@ -6,12 +6,13 @@ part of 'user.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_User _$$_UserFromJson(Map json) => _$_User( +_$UserImpl _$$UserImplFromJson(Map json) => _$UserImpl( email: json['email'] as String, name: json['name'] as String?, ); -Map _$$_UserToJson(_$_User instance) => { +Map _$$UserImplToJson(_$UserImpl instance) => + { 'email': instance.email, 'name': instance.name, }; diff --git a/lib/gen/assets.gen.dart b/lib/gen/assets.gen.dart index 8a4f2e0c..ababc527 100644 --- a/lib/gen/assets.gen.dart +++ b/lib/gen/assets.gen.dart @@ -7,82 +7,6 @@ // ignore_for_file: type=lint // ignore_for_file: directives_ordering,unnecessary_import,implicit_dynamic_list_literal,deprecated_member_use -import 'package:flutter/widgets.dart'; - class Assets { Assets._(); } - -class AssetGenImage { - const AssetGenImage(this._assetName); - - final String _assetName; - - Image image({ - Key? key, - AssetBundle? bundle, - ImageFrameBuilder? frameBuilder, - ImageErrorWidgetBuilder? errorBuilder, - String? semanticLabel, - bool excludeFromSemantics = false, - double? scale, - double? width, - double? height, - Color? color, - Animation? opacity, - BlendMode? colorBlendMode, - BoxFit? fit, - AlignmentGeometry alignment = Alignment.center, - ImageRepeat repeat = ImageRepeat.noRepeat, - Rect? centerSlice, - bool matchTextDirection = false, - bool gaplessPlayback = false, - bool isAntiAlias = false, - String? package, - FilterQuality filterQuality = FilterQuality.low, - int? cacheWidth, - int? cacheHeight, - }) { - return Image.asset( - _assetName, - key: key, - bundle: bundle, - frameBuilder: frameBuilder, - errorBuilder: errorBuilder, - semanticLabel: semanticLabel, - excludeFromSemantics: excludeFromSemantics, - scale: scale, - width: width, - height: height, - color: color, - opacity: opacity, - colorBlendMode: colorBlendMode, - fit: fit, - alignment: alignment, - repeat: repeat, - centerSlice: centerSlice, - matchTextDirection: matchTextDirection, - gaplessPlayback: gaplessPlayback, - isAntiAlias: isAntiAlias, - package: package, - filterQuality: filterQuality, - cacheWidth: cacheWidth, - cacheHeight: cacheHeight, - ); - } - - ImageProvider provider({ - AssetBundle? bundle, - String? package, - }) { - return AssetImage( - _assetName, - bundle: bundle, - package: package, - ); - } - - String get path => _assetName; - - String get keyName => _assetName; -} diff --git a/lib/ui/section/error_handler/general_error.freezed.dart b/lib/ui/section/error_handler/general_error.freezed.dart index 5403ee48..06af6248 100644 --- a/lib/ui/section/error_handler/general_error.freezed.dart +++ b/lib/ui/section/error_handler/general_error.freezed.dart @@ -12,7 +12,7 @@ part of 'general_error.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); /// @nodoc mixin _$GeneralError { @@ -69,22 +69,22 @@ class _$GeneralErrorCopyWithImpl<$Res, $Val extends GeneralError> } /// @nodoc -abstract class _$$_GeneralErrorCopyWith<$Res> +abstract class _$$GeneralErrorImplCopyWith<$Res> implements $GeneralErrorCopyWith<$Res> { - factory _$$_GeneralErrorCopyWith( - _$_GeneralError value, $Res Function(_$_GeneralError) then) = - __$$_GeneralErrorCopyWithImpl<$Res>; + factory _$$GeneralErrorImplCopyWith( + _$GeneralErrorImpl value, $Res Function(_$GeneralErrorImpl) then) = + __$$GeneralErrorImplCopyWithImpl<$Res>; @override @useResult $Res call({String description, String? title, dynamic cause}); } /// @nodoc -class __$$_GeneralErrorCopyWithImpl<$Res> - extends _$GeneralErrorCopyWithImpl<$Res, _$_GeneralError> - implements _$$_GeneralErrorCopyWith<$Res> { - __$$_GeneralErrorCopyWithImpl( - _$_GeneralError _value, $Res Function(_$_GeneralError) _then) +class __$$GeneralErrorImplCopyWithImpl<$Res> + extends _$GeneralErrorCopyWithImpl<$Res, _$GeneralErrorImpl> + implements _$$GeneralErrorImplCopyWith<$Res> { + __$$GeneralErrorImplCopyWithImpl( + _$GeneralErrorImpl _value, $Res Function(_$GeneralErrorImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -94,7 +94,7 @@ class __$$_GeneralErrorCopyWithImpl<$Res> Object? title = freezed, Object? cause = freezed, }) { - return _then(_$_GeneralError( + return _then(_$GeneralErrorImpl( description: null == description ? _value.description : description // ignore: cast_nullable_to_non_nullable @@ -113,8 +113,8 @@ class __$$_GeneralErrorCopyWithImpl<$Res> /// @nodoc -class _$_GeneralError with DiagnosticableTreeMixin implements _GeneralError { - const _$_GeneralError({required this.description, this.title, this.cause}); +class _$GeneralErrorImpl with DiagnosticableTreeMixin implements _GeneralError { + const _$GeneralErrorImpl({required this.description, this.title, this.cause}); @override final String description; @@ -139,10 +139,10 @@ class _$_GeneralError with DiagnosticableTreeMixin implements _GeneralError { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_GeneralError && + other is _$GeneralErrorImpl && (identical(other.description, description) || other.description == description) && (identical(other.title, title) || other.title == title) && @@ -156,15 +156,15 @@ class _$_GeneralError with DiagnosticableTreeMixin implements _GeneralError { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_GeneralErrorCopyWith<_$_GeneralError> get copyWith => - __$$_GeneralErrorCopyWithImpl<_$_GeneralError>(this, _$identity); + _$$GeneralErrorImplCopyWith<_$GeneralErrorImpl> get copyWith => + __$$GeneralErrorImplCopyWithImpl<_$GeneralErrorImpl>(this, _$identity); } abstract class _GeneralError implements GeneralError { const factory _GeneralError( {required final String description, final String? title, - final dynamic cause}) = _$_GeneralError; + final dynamic cause}) = _$GeneralErrorImpl; @override String get description; @@ -174,6 +174,6 @@ abstract class _GeneralError implements GeneralError { dynamic get cause; @override @JsonKey(ignore: true) - _$$_GeneralErrorCopyWith<_$_GeneralError> get copyWith => + _$$GeneralErrorImplCopyWith<_$GeneralErrorImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/ui/section/error_handler/global_event_handler_cubit.freezed.dart b/lib/ui/section/error_handler/global_event_handler_cubit.freezed.dart index 4d0d3796..2f9342b1 100644 --- a/lib/ui/section/error_handler/global_event_handler_cubit.freezed.dart +++ b/lib/ui/section/error_handler/global_event_handler_cubit.freezed.dart @@ -12,7 +12,7 @@ part of 'global_event_handler_cubit.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); /// @nodoc mixin _$GlobalEventHandlerState { @@ -82,30 +82,30 @@ class _$GlobalEventHandlerStateCopyWithImpl<$Res, } /// @nodoc -abstract class _$$IdleGlobalEventHandlerStateCopyWith<$Res> { - factory _$$IdleGlobalEventHandlerStateCopyWith( - _$IdleGlobalEventHandlerState value, - $Res Function(_$IdleGlobalEventHandlerState) then) = - __$$IdleGlobalEventHandlerStateCopyWithImpl<$Res>; +abstract class _$$IdleGlobalEventHandlerStateImplCopyWith<$Res> { + factory _$$IdleGlobalEventHandlerStateImplCopyWith( + _$IdleGlobalEventHandlerStateImpl value, + $Res Function(_$IdleGlobalEventHandlerStateImpl) then) = + __$$IdleGlobalEventHandlerStateImplCopyWithImpl<$Res>; } /// @nodoc -class __$$IdleGlobalEventHandlerStateCopyWithImpl<$Res> +class __$$IdleGlobalEventHandlerStateImplCopyWithImpl<$Res> extends _$GlobalEventHandlerStateCopyWithImpl<$Res, - _$IdleGlobalEventHandlerState> - implements _$$IdleGlobalEventHandlerStateCopyWith<$Res> { - __$$IdleGlobalEventHandlerStateCopyWithImpl( - _$IdleGlobalEventHandlerState _value, - $Res Function(_$IdleGlobalEventHandlerState) _then) + _$IdleGlobalEventHandlerStateImpl> + implements _$$IdleGlobalEventHandlerStateImplCopyWith<$Res> { + __$$IdleGlobalEventHandlerStateImplCopyWithImpl( + _$IdleGlobalEventHandlerStateImpl _value, + $Res Function(_$IdleGlobalEventHandlerStateImpl) _then) : super(_value, _then); } /// @nodoc -class _$IdleGlobalEventHandlerState +class _$IdleGlobalEventHandlerStateImpl with DiagnosticableTreeMixin implements IdleGlobalEventHandlerState { - const _$IdleGlobalEventHandlerState(); + const _$IdleGlobalEventHandlerStateImpl(); @override String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { @@ -119,10 +119,10 @@ class _$IdleGlobalEventHandlerState } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$IdleGlobalEventHandlerState); + other is _$IdleGlobalEventHandlerStateImpl); } @override @@ -198,15 +198,16 @@ class _$IdleGlobalEventHandlerState } abstract class IdleGlobalEventHandlerState implements GlobalEventHandlerState { - const factory IdleGlobalEventHandlerState() = _$IdleGlobalEventHandlerState; + const factory IdleGlobalEventHandlerState() = + _$IdleGlobalEventHandlerStateImpl; } /// @nodoc -abstract class _$$ErrorGlobalEventHandlerStateCopyWith<$Res> { - factory _$$ErrorGlobalEventHandlerStateCopyWith( - _$ErrorGlobalEventHandlerState value, - $Res Function(_$ErrorGlobalEventHandlerState) then) = - __$$ErrorGlobalEventHandlerStateCopyWithImpl<$Res>; +abstract class _$$ErrorGlobalEventHandlerStateImplCopyWith<$Res> { + factory _$$ErrorGlobalEventHandlerStateImplCopyWith( + _$ErrorGlobalEventHandlerStateImpl value, + $Res Function(_$ErrorGlobalEventHandlerStateImpl) then) = + __$$ErrorGlobalEventHandlerStateImplCopyWithImpl<$Res>; @useResult $Res call({GlobalEventHandlerStateError error}); @@ -214,13 +215,13 @@ abstract class _$$ErrorGlobalEventHandlerStateCopyWith<$Res> { } /// @nodoc -class __$$ErrorGlobalEventHandlerStateCopyWithImpl<$Res> +class __$$ErrorGlobalEventHandlerStateImplCopyWithImpl<$Res> extends _$GlobalEventHandlerStateCopyWithImpl<$Res, - _$ErrorGlobalEventHandlerState> - implements _$$ErrorGlobalEventHandlerStateCopyWith<$Res> { - __$$ErrorGlobalEventHandlerStateCopyWithImpl( - _$ErrorGlobalEventHandlerState _value, - $Res Function(_$ErrorGlobalEventHandlerState) _then) + _$ErrorGlobalEventHandlerStateImpl> + implements _$$ErrorGlobalEventHandlerStateImplCopyWith<$Res> { + __$$ErrorGlobalEventHandlerStateImplCopyWithImpl( + _$ErrorGlobalEventHandlerStateImpl _value, + $Res Function(_$ErrorGlobalEventHandlerStateImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -228,7 +229,7 @@ class __$$ErrorGlobalEventHandlerStateCopyWithImpl<$Res> $Res call({ Object? error = null, }) { - return _then(_$ErrorGlobalEventHandlerState( + return _then(_$ErrorGlobalEventHandlerStateImpl( null == error ? _value.error : error // ignore: cast_nullable_to_non_nullable @@ -247,10 +248,10 @@ class __$$ErrorGlobalEventHandlerStateCopyWithImpl<$Res> /// @nodoc -class _$ErrorGlobalEventHandlerState +class _$ErrorGlobalEventHandlerStateImpl with DiagnosticableTreeMixin implements ErrorGlobalEventHandlerState { - const _$ErrorGlobalEventHandlerState(this.error); + const _$ErrorGlobalEventHandlerStateImpl(this.error); @override final GlobalEventHandlerStateError error; @@ -269,10 +270,10 @@ class _$ErrorGlobalEventHandlerState } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$ErrorGlobalEventHandlerState && + other is _$ErrorGlobalEventHandlerStateImpl && (identical(other.error, error) || other.error == error)); } @@ -282,9 +283,10 @@ class _$ErrorGlobalEventHandlerState @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ErrorGlobalEventHandlerStateCopyWith<_$ErrorGlobalEventHandlerState> - get copyWith => __$$ErrorGlobalEventHandlerStateCopyWithImpl< - _$ErrorGlobalEventHandlerState>(this, _$identity); + _$$ErrorGlobalEventHandlerStateImplCopyWith< + _$ErrorGlobalEventHandlerStateImpl> + get copyWith => __$$ErrorGlobalEventHandlerStateImplCopyWithImpl< + _$ErrorGlobalEventHandlerStateImpl>(this, _$identity); @override @optionalTypeArgs @@ -358,39 +360,40 @@ class _$ErrorGlobalEventHandlerState abstract class ErrorGlobalEventHandlerState implements GlobalEventHandlerState { const factory ErrorGlobalEventHandlerState( final GlobalEventHandlerStateError error) = - _$ErrorGlobalEventHandlerState; + _$ErrorGlobalEventHandlerStateImpl; GlobalEventHandlerStateError get error; @JsonKey(ignore: true) - _$$ErrorGlobalEventHandlerStateCopyWith<_$ErrorGlobalEventHandlerState> + _$$ErrorGlobalEventHandlerStateImplCopyWith< + _$ErrorGlobalEventHandlerStateImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$LoadingGlobalEventHandlerStateCopyWith<$Res> { - factory _$$LoadingGlobalEventHandlerStateCopyWith( - _$LoadingGlobalEventHandlerState value, - $Res Function(_$LoadingGlobalEventHandlerState) then) = - __$$LoadingGlobalEventHandlerStateCopyWithImpl<$Res>; +abstract class _$$LoadingGlobalEventHandlerStateImplCopyWith<$Res> { + factory _$$LoadingGlobalEventHandlerStateImplCopyWith( + _$LoadingGlobalEventHandlerStateImpl value, + $Res Function(_$LoadingGlobalEventHandlerStateImpl) then) = + __$$LoadingGlobalEventHandlerStateImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LoadingGlobalEventHandlerStateCopyWithImpl<$Res> +class __$$LoadingGlobalEventHandlerStateImplCopyWithImpl<$Res> extends _$GlobalEventHandlerStateCopyWithImpl<$Res, - _$LoadingGlobalEventHandlerState> - implements _$$LoadingGlobalEventHandlerStateCopyWith<$Res> { - __$$LoadingGlobalEventHandlerStateCopyWithImpl( - _$LoadingGlobalEventHandlerState _value, - $Res Function(_$LoadingGlobalEventHandlerState) _then) + _$LoadingGlobalEventHandlerStateImpl> + implements _$$LoadingGlobalEventHandlerStateImplCopyWith<$Res> { + __$$LoadingGlobalEventHandlerStateImplCopyWithImpl( + _$LoadingGlobalEventHandlerStateImpl _value, + $Res Function(_$LoadingGlobalEventHandlerStateImpl) _then) : super(_value, _then); } /// @nodoc -class _$LoadingGlobalEventHandlerState +class _$LoadingGlobalEventHandlerStateImpl with DiagnosticableTreeMixin implements LoadingGlobalEventHandlerState { - const _$LoadingGlobalEventHandlerState(); + const _$LoadingGlobalEventHandlerStateImpl(); @override String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { @@ -405,10 +408,10 @@ class _$LoadingGlobalEventHandlerState } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LoadingGlobalEventHandlerState); + other is _$LoadingGlobalEventHandlerStateImpl); } @override @@ -486,7 +489,7 @@ class _$LoadingGlobalEventHandlerState abstract class LoadingGlobalEventHandlerState implements GlobalEventHandlerState { const factory LoadingGlobalEventHandlerState() = - _$LoadingGlobalEventHandlerState; + _$LoadingGlobalEventHandlerStateImpl; } /// @nodoc @@ -583,22 +586,22 @@ class _$GlobalEventHandlerStateErrorCopyWithImpl<$Res, } /// @nodoc -abstract class _$$UnknownErrorCopyWith<$Res> +abstract class _$$UnknownErrorImplCopyWith<$Res> implements $GlobalEventHandlerStateErrorCopyWith<$Res> { - factory _$$UnknownErrorCopyWith( - _$UnknownError value, $Res Function(_$UnknownError) then) = - __$$UnknownErrorCopyWithImpl<$Res>; + factory _$$UnknownErrorImplCopyWith( + _$UnknownErrorImpl value, $Res Function(_$UnknownErrorImpl) then) = + __$$UnknownErrorImplCopyWithImpl<$Res>; @override @useResult $Res call({Object? error, VoidCallback? retry}); } /// @nodoc -class __$$UnknownErrorCopyWithImpl<$Res> - extends _$GlobalEventHandlerStateErrorCopyWithImpl<$Res, _$UnknownError> - implements _$$UnknownErrorCopyWith<$Res> { - __$$UnknownErrorCopyWithImpl( - _$UnknownError _value, $Res Function(_$UnknownError) _then) +class __$$UnknownErrorImplCopyWithImpl<$Res> + extends _$GlobalEventHandlerStateErrorCopyWithImpl<$Res, _$UnknownErrorImpl> + implements _$$UnknownErrorImplCopyWith<$Res> { + __$$UnknownErrorImplCopyWithImpl( + _$UnknownErrorImpl _value, $Res Function(_$UnknownErrorImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -607,7 +610,7 @@ class __$$UnknownErrorCopyWithImpl<$Res> Object? error = freezed, Object? retry = freezed, }) { - return _then(_$UnknownError( + return _then(_$UnknownErrorImpl( freezed == error ? _value.error : error, freezed == retry ? _value.retry @@ -619,8 +622,8 @@ class __$$UnknownErrorCopyWithImpl<$Res> /// @nodoc -class _$UnknownError with DiagnosticableTreeMixin implements UnknownError { - const _$UnknownError(this.error, [this.retry]); +class _$UnknownErrorImpl with DiagnosticableTreeMixin implements UnknownError { + const _$UnknownErrorImpl(this.error, [this.retry]); @override final Object? error; @@ -645,8 +648,8 @@ class _$UnknownError with DiagnosticableTreeMixin implements UnknownError { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$UnknownErrorCopyWith<_$UnknownError> get copyWith => - __$$UnknownErrorCopyWithImpl<_$UnknownError>(this, _$identity); + _$$UnknownErrorImplCopyWith<_$UnknownErrorImpl> get copyWith => + __$$UnknownErrorImplCopyWithImpl<_$UnknownErrorImpl>(this, _$identity); @override @optionalTypeArgs @@ -723,34 +726,34 @@ class _$UnknownError with DiagnosticableTreeMixin implements UnknownError { abstract class UnknownError implements GlobalEventHandlerStateError { const factory UnknownError(final Object? error, [final VoidCallback? retry]) = - _$UnknownError; + _$UnknownErrorImpl; Object? get error; @override VoidCallback? get retry; @override @JsonKey(ignore: true) - _$$UnknownErrorCopyWith<_$UnknownError> get copyWith => + _$$UnknownErrorImplCopyWith<_$UnknownErrorImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$InternetErrorCopyWith<$Res> +abstract class _$$InternetErrorImplCopyWith<$Res> implements $GlobalEventHandlerStateErrorCopyWith<$Res> { - factory _$$InternetErrorCopyWith( - _$InternetError value, $Res Function(_$InternetError) then) = - __$$InternetErrorCopyWithImpl<$Res>; + factory _$$InternetErrorImplCopyWith( + _$InternetErrorImpl value, $Res Function(_$InternetErrorImpl) then) = + __$$InternetErrorImplCopyWithImpl<$Res>; @override @useResult $Res call({VoidCallback? retry}); } /// @nodoc -class __$$InternetErrorCopyWithImpl<$Res> - extends _$GlobalEventHandlerStateErrorCopyWithImpl<$Res, _$InternetError> - implements _$$InternetErrorCopyWith<$Res> { - __$$InternetErrorCopyWithImpl( - _$InternetError _value, $Res Function(_$InternetError) _then) +class __$$InternetErrorImplCopyWithImpl<$Res> + extends _$GlobalEventHandlerStateErrorCopyWithImpl<$Res, + _$InternetErrorImpl> implements _$$InternetErrorImplCopyWith<$Res> { + __$$InternetErrorImplCopyWithImpl( + _$InternetErrorImpl _value, $Res Function(_$InternetErrorImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -758,7 +761,7 @@ class __$$InternetErrorCopyWithImpl<$Res> $Res call({ Object? retry = freezed, }) { - return _then(_$InternetError( + return _then(_$InternetErrorImpl( freezed == retry ? _value.retry : retry // ignore: cast_nullable_to_non_nullable @@ -769,8 +772,10 @@ class __$$InternetErrorCopyWithImpl<$Res> /// @nodoc -class _$InternetError with DiagnosticableTreeMixin implements InternetError { - const _$InternetError([this.retry]); +class _$InternetErrorImpl + with DiagnosticableTreeMixin + implements InternetError { + const _$InternetErrorImpl([this.retry]); @override final VoidCallback? retry; @@ -792,8 +797,8 @@ class _$InternetError with DiagnosticableTreeMixin implements InternetError { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$InternetErrorCopyWith<_$InternetError> get copyWith => - __$$InternetErrorCopyWithImpl<_$InternetError>(this, _$identity); + _$$InternetErrorImplCopyWith<_$InternetErrorImpl> get copyWith => + __$$InternetErrorImplCopyWithImpl<_$InternetErrorImpl>(this, _$identity); @override @optionalTypeArgs @@ -869,33 +874,34 @@ class _$InternetError with DiagnosticableTreeMixin implements InternetError { } abstract class InternetError implements GlobalEventHandlerStateError { - const factory InternetError([final VoidCallback? retry]) = _$InternetError; + const factory InternetError([final VoidCallback? retry]) = + _$InternetErrorImpl; @override VoidCallback? get retry; @override @JsonKey(ignore: true) - _$$InternetErrorCopyWith<_$InternetError> get copyWith => + _$$InternetErrorImplCopyWith<_$InternetErrorImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$GeneralErrorCopyWith<$Res> +abstract class _$$GeneralErrorImplCopyWith<$Res> implements $GlobalEventHandlerStateErrorCopyWith<$Res> { - factory _$$GeneralErrorCopyWith( - _$GeneralError value, $Res Function(_$GeneralError) then) = - __$$GeneralErrorCopyWithImpl<$Res>; + factory _$$GeneralErrorImplCopyWith( + _$GeneralErrorImpl value, $Res Function(_$GeneralErrorImpl) then) = + __$$GeneralErrorImplCopyWithImpl<$Res>; @override @useResult $Res call({String? title, String description, VoidCallback? retry}); } /// @nodoc -class __$$GeneralErrorCopyWithImpl<$Res> - extends _$GlobalEventHandlerStateErrorCopyWithImpl<$Res, _$GeneralError> - implements _$$GeneralErrorCopyWith<$Res> { - __$$GeneralErrorCopyWithImpl( - _$GeneralError _value, $Res Function(_$GeneralError) _then) +class __$$GeneralErrorImplCopyWithImpl<$Res> + extends _$GlobalEventHandlerStateErrorCopyWithImpl<$Res, _$GeneralErrorImpl> + implements _$$GeneralErrorImplCopyWith<$Res> { + __$$GeneralErrorImplCopyWithImpl( + _$GeneralErrorImpl _value, $Res Function(_$GeneralErrorImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -905,7 +911,7 @@ class __$$GeneralErrorCopyWithImpl<$Res> Object? description = null, Object? retry = freezed, }) { - return _then(_$GeneralError( + return _then(_$GeneralErrorImpl( freezed == title ? _value.title : title // ignore: cast_nullable_to_non_nullable @@ -924,8 +930,8 @@ class __$$GeneralErrorCopyWithImpl<$Res> /// @nodoc -class _$GeneralError with DiagnosticableTreeMixin implements GeneralError { - const _$GeneralError(this.title, this.description, [this.retry]); +class _$GeneralErrorImpl with DiagnosticableTreeMixin implements GeneralError { + const _$GeneralErrorImpl(this.title, this.description, [this.retry]); @override final String? title; @@ -953,8 +959,8 @@ class _$GeneralError with DiagnosticableTreeMixin implements GeneralError { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$GeneralErrorCopyWith<_$GeneralError> get copyWith => - __$$GeneralErrorCopyWithImpl<_$GeneralError>(this, _$identity); + _$$GeneralErrorImplCopyWith<_$GeneralErrorImpl> get copyWith => + __$$GeneralErrorImplCopyWithImpl<_$GeneralErrorImpl>(this, _$identity); @override @optionalTypeArgs @@ -1031,7 +1037,7 @@ class _$GeneralError with DiagnosticableTreeMixin implements GeneralError { abstract class GeneralError implements GlobalEventHandlerStateError { const factory GeneralError(final String? title, final String description, - [final VoidCallback? retry]) = _$GeneralError; + [final VoidCallback? retry]) = _$GeneralErrorImpl; String? get title; String get description; @@ -1039,6 +1045,6 @@ abstract class GeneralError implements GlobalEventHandlerStateError { VoidCallback? get retry; @override @JsonKey(ignore: true) - _$$GeneralErrorCopyWith<_$GeneralError> get copyWith => + _$$GeneralErrorImplCopyWith<_$GeneralErrorImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/ui/signin/signin_cubit.freezed.dart b/lib/ui/signin/signin_cubit.freezed.dart index c63ed615..5617aac8 100644 --- a/lib/ui/signin/signin_cubit.freezed.dart +++ b/lib/ui/signin/signin_cubit.freezed.dart @@ -12,7 +12,7 @@ part of 'signin_cubit.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); /// @nodoc mixin _$SignInBaseState { @@ -102,22 +102,22 @@ class _$SignInBaseStateCopyWithImpl<$Res, $Val extends SignInBaseState> } /// @nodoc -abstract class _$$SignInStateCopyWith<$Res> +abstract class _$$SignInStateImplCopyWith<$Res> implements $SignInBaseStateCopyWith<$Res> { - factory _$$SignInStateCopyWith( - _$SignInState value, $Res Function(_$SignInState) then) = - __$$SignInStateCopyWithImpl<$Res>; + factory _$$SignInStateImplCopyWith( + _$SignInStateImpl value, $Res Function(_$SignInStateImpl) then) = + __$$SignInStateImplCopyWithImpl<$Res>; @override @useResult $Res call({String? email, String? password, String error}); } /// @nodoc -class __$$SignInStateCopyWithImpl<$Res> - extends _$SignInBaseStateCopyWithImpl<$Res, _$SignInState> - implements _$$SignInStateCopyWith<$Res> { - __$$SignInStateCopyWithImpl( - _$SignInState _value, $Res Function(_$SignInState) _then) +class __$$SignInStateImplCopyWithImpl<$Res> + extends _$SignInBaseStateCopyWithImpl<$Res, _$SignInStateImpl> + implements _$$SignInStateImplCopyWith<$Res> { + __$$SignInStateImplCopyWithImpl( + _$SignInStateImpl _value, $Res Function(_$SignInStateImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -127,7 +127,7 @@ class __$$SignInStateCopyWithImpl<$Res> Object? password = freezed, Object? error = null, }) { - return _then(_$SignInState( + return _then(_$SignInStateImpl( email: freezed == email ? _value.email : email // ignore: cast_nullable_to_non_nullable @@ -146,8 +146,8 @@ class __$$SignInStateCopyWithImpl<$Res> /// @nodoc -class _$SignInState implements SignInState { - const _$SignInState( +class _$SignInStateImpl implements SignInState { + const _$SignInStateImpl( {required this.email, required this.password, required this.error}); @override @@ -163,10 +163,10 @@ class _$SignInState implements SignInState { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$SignInState && + other is _$SignInStateImpl && (identical(other.email, email) || other.email == email) && (identical(other.password, password) || other.password == password) && @@ -179,8 +179,8 @@ class _$SignInState implements SignInState { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$SignInStateCopyWith<_$SignInState> get copyWith => - __$$SignInStateCopyWithImpl<_$SignInState>(this, _$identity); + _$$SignInStateImplCopyWith<_$SignInStateImpl> get copyWith => + __$$SignInStateImplCopyWithImpl<_$SignInStateImpl>(this, _$identity); @override @optionalTypeArgs @@ -244,7 +244,7 @@ abstract class SignInState implements SignInBaseState { const factory SignInState( {required final String? email, required final String? password, - required final String error}) = _$SignInState; + required final String error}) = _$SignInStateImpl; @override String? get email; @@ -254,6 +254,6 @@ abstract class SignInState implements SignInBaseState { String get error; @override @JsonKey(ignore: true) - _$$SignInStateCopyWith<_$SignInState> get copyWith => + _$$SignInStateImplCopyWith<_$SignInStateImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/ui/welcome/welcome_cubit.freezed.dart b/lib/ui/welcome/welcome_cubit.freezed.dart index f0fbf8c2..ba1f4a0c 100644 --- a/lib/ui/welcome/welcome_cubit.freezed.dart +++ b/lib/ui/welcome/welcome_cubit.freezed.dart @@ -12,7 +12,7 @@ part of 'welcome_cubit.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); /// @nodoc mixin _$WelcomeBaseState { @@ -89,22 +89,22 @@ class _$WelcomeBaseStateCopyWithImpl<$Res, $Val extends WelcomeBaseState> } /// @nodoc -abstract class _$$WelcomeStateCopyWith<$Res> +abstract class _$$WelcomeStateImplCopyWith<$Res> implements $WelcomeBaseStateCopyWith<$Res> { - factory _$$WelcomeStateCopyWith( - _$WelcomeState value, $Res Function(_$WelcomeState) then) = - __$$WelcomeStateCopyWithImpl<$Res>; + factory _$$WelcomeStateImplCopyWith( + _$WelcomeStateImpl value, $Res Function(_$WelcomeStateImpl) then) = + __$$WelcomeStateImplCopyWithImpl<$Res>; @override @useResult $Res call({List projects}); } /// @nodoc -class __$$WelcomeStateCopyWithImpl<$Res> - extends _$WelcomeBaseStateCopyWithImpl<$Res, _$WelcomeState> - implements _$$WelcomeStateCopyWith<$Res> { - __$$WelcomeStateCopyWithImpl( - _$WelcomeState _value, $Res Function(_$WelcomeState) _then) +class __$$WelcomeStateImplCopyWithImpl<$Res> + extends _$WelcomeBaseStateCopyWithImpl<$Res, _$WelcomeStateImpl> + implements _$$WelcomeStateImplCopyWith<$Res> { + __$$WelcomeStateImplCopyWithImpl( + _$WelcomeStateImpl _value, $Res Function(_$WelcomeStateImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -112,7 +112,7 @@ class __$$WelcomeStateCopyWithImpl<$Res> $Res call({ Object? projects = null, }) { - return _then(_$WelcomeState( + return _then(_$WelcomeStateImpl( projects: null == projects ? _value._projects : projects // ignore: cast_nullable_to_non_nullable @@ -123,8 +123,8 @@ class __$$WelcomeStateCopyWithImpl<$Res> /// @nodoc -class _$WelcomeState implements WelcomeState { - const _$WelcomeState({final List projects = const []}) +class _$WelcomeStateImpl implements WelcomeState { + const _$WelcomeStateImpl({final List projects = const []}) : _projects = projects; final List _projects; @@ -142,10 +142,10 @@ class _$WelcomeState implements WelcomeState { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$WelcomeState && + other is _$WelcomeStateImpl && const DeepCollectionEquality().equals(other._projects, _projects)); } @@ -156,8 +156,8 @@ class _$WelcomeState implements WelcomeState { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$WelcomeStateCopyWith<_$WelcomeState> get copyWith => - __$$WelcomeStateCopyWithImpl<_$WelcomeState>(this, _$identity); + _$$WelcomeStateImplCopyWith<_$WelcomeStateImpl> get copyWith => + __$$WelcomeStateImplCopyWithImpl<_$WelcomeStateImpl>(this, _$identity); @override @optionalTypeArgs @@ -217,12 +217,13 @@ class _$WelcomeState implements WelcomeState { } abstract class WelcomeState implements WelcomeBaseState { - const factory WelcomeState({final List projects}) = _$WelcomeState; + const factory WelcomeState({final List projects}) = + _$WelcomeStateImpl; @override List get projects; @override @JsonKey(ignore: true) - _$$WelcomeStateCopyWith<_$WelcomeState> get copyWith => + _$$WelcomeStateImplCopyWith<_$WelcomeStateImpl> get copyWith => throw _privateConstructorUsedError; }