diff --git a/.gitignore b/.gitignore index a78e06a..6c9ffab 100644 --- a/.gitignore +++ b/.gitignore @@ -8,10 +8,7 @@ .buildlog/ .history .svn/ -*.g.dart -*.mocks.dart -applicationDocumentsPath -hive_testing_path + # IntelliJ related *.iml diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 2e60d0e..e8ff373 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -26,7 +26,7 @@ apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { - compileSdkVersion 33 + compileSdkVersion 34 sourceSets { main.java.srcDirs += 'src/main/kotlin' @@ -35,8 +35,8 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.chatwoot.example" - minSdkVersion 19 - targetSdkVersion 33 + minSdkVersion flutter.minSdkVersion + targetSdkVersion 34 versionCode flutterVersionCode.toInteger() versionName flutterVersionName } diff --git a/example/android/build.gradle b/example/android/build.gradle index 0b0a838..bcbbf20 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -26,6 +26,6 @@ subprojects { project.evaluationDependsOn(':app') } -task clean(type: Delete) { +tasks.register("clean", Delete) { delete rootProject.buildDir } diff --git a/example/lib/main.dart b/example/lib/main.dart index b885caa..cb0ff98 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -26,7 +26,7 @@ class MyApp extends StatelessWidget { } class MyHomePage extends StatefulWidget { - MyHomePage({Key key, this.title}) : super(key: key); + MyHomePage({Key? key, required this.title}) : super(key: key); final String title; @@ -88,7 +88,7 @@ class _MyHomePageState extends State { final imageData = await photo.readAsBytes(); final decodedImage = image.decodeImage(imageData); - final scaledImage = image.copyResize(decodedImage, width: 500); + final scaledImage = image.copyResize(decodedImage!, width: 500); final jpg = image.encodeJpg(scaledImage, quality: 90); final filePath = (await getTemporaryDirectory()).uri.resolve( diff --git a/example/pubspec.lock b/example/pubspec.lock index 2913c99..ab8ba50 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -5,18 +5,18 @@ packages: dependency: transitive description: name: archive - sha256: d6347d54a2d8028e0437e3c099f66fdb8ae02c4720c1e7534c9f24c10351f85d + sha256: cb6a278ef2dbb298455e1a713bda08524a175630ec643a242c399c932a0a1f7d url: "https://pub.dev" source: hosted - version: "3.3.6" + version: "3.6.1" async: dependency: transitive description: name: async - sha256: bfe67ef28df125b7dddcea62755991f807aa39a2492a23e1550161692950bbe0 + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" url: "https://pub.dev" source: hosted - version: "2.10.0" + version: "2.11.0" boolean_selector: dependency: transitive description: @@ -29,10 +29,10 @@ packages: dependency: transitive description: name: characters - sha256: e6a326c8af69605aec75ed6c187d06b349707a27fbff8222ca9cc2cff167975c + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" url: "https://pub.dev" source: hosted - version: "1.2.1" + version: "1.3.0" chatwoot_sdk: dependency: "direct main" description: @@ -52,18 +52,10 @@ packages: dependency: transitive description: name: collection - sha256: cfc915e6923fe5ce6e153b0723c753045de46de1b4d63771530504004a45fae0 - url: "https://pub.dev" - source: hosted - version: "1.17.0" - convert: - dependency: transitive - description: - name: convert - sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a url: "https://pub.dev" source: hosted - version: "3.1.1" + version: "1.18.0" cross_file: dependency: transitive description: @@ -76,10 +68,10 @@ packages: dependency: transitive description: name: crypto - sha256: aa274aa7774f8964e4f4f38cc994db7b6158dd36e9187aaceaddc994b35c6c67 + sha256: "1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855" url: "https://pub.dev" source: hosted - version: "3.0.2" + version: "3.0.6" csslib: dependency: transitive description: @@ -100,18 +92,26 @@ packages: dependency: transitive description: name: diffutil_dart - sha256: "21bcad3fcc89389da5c72c59b9da31eabb301a6548f715c17b0dfdd27d2ac6d5" + sha256: "5e74883aedf87f3b703cb85e815bdc1ed9208b33501556e4a8a5572af9845c81" url: "https://pub.dev" source: hosted - version: "2.0.0+1" + version: "4.0.1" dio: dependency: transitive description: name: dio - sha256: "7d328c4d898a61efc3cd93655a0955858e29a0aa647f0f9e02d59b3bb275e2e8" + sha256: "5598aa796bbf4699afd5c67c0f5f6e2ed542afc956884b9cd58c306966efc260" + url: "https://pub.dev" + source: hosted + version: "5.7.0" + dio_web_adapter: + dependency: transitive + description: + name: dio_web_adapter + sha256: "33259a9276d6cea88774a0000cfae0d861003497755969c92faa223108620dc8" url: "https://pub.dev" source: hosted - version: "4.0.6" + version: "2.0.0" equatable: dependency: transitive description: @@ -132,10 +132,10 @@ packages: dependency: transitive description: name: ffi - sha256: a38574032c5f1dd06c4aee541789906c12ccaab8ba01446e800d9c5b79c4a978 + sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6" url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "2.1.3" file: dependency: transitive description: @@ -144,6 +144,46 @@ packages: url: "https://pub.dev" source: hosted version: "6.1.4" + file_selector_linux: + dependency: transitive + description: + name: file_selector_linux + sha256: "712ce7fab537ba532c8febdb1a8f167b32441e74acd68c3ccb2e36dcb52c4ab2" + url: "https://pub.dev" + source: hosted + version: "0.9.3" + file_selector_macos: + dependency: transitive + description: + name: file_selector_macos + sha256: "271ab9986df0c135d45c3cdb6bd0faa5db6f4976d3e4b437cf7d0f258d941bfc" + url: "https://pub.dev" + source: hosted + version: "0.9.4+2" + file_selector_platform_interface: + dependency: transitive + description: + name: file_selector_platform_interface + sha256: a3994c26f10378a039faa11de174d7b78eb8f79e4dd0af2a451410c1a5c3f66b + url: "https://pub.dev" + source: hosted + version: "2.6.2" + file_selector_windows: + dependency: transitive + description: + name: file_selector_windows + sha256: "8f5d2f6590d51ecd9179ba39c64f722edc15226cc93dcc8698466ad36a4a85a4" + url: "https://pub.dev" + source: hosted + version: "0.9.3+3" + fixnum: + dependency: transitive + description: + name: fixnum + sha256: b6dc7065e46c974bc7c5f143080a6764ec7a4be6da1285ececdc37be96de53be + url: "https://pub.dev" + source: hosted + version: "1.1.1" flutter: dependency: "direct main" description: flutter @@ -153,34 +193,42 @@ packages: dependency: transitive description: name: flutter_chat_types - sha256: cb9e72c6dee5f32e4b379b6b953dff95253c54242ee4e21ad81652b11902d5a8 + sha256: e285b588f6d19d907feb1f6d912deaf22e223656769c34093b64e1c59b094fb9 url: "https://pub.dev" source: hosted - version: "2.4.3" + version: "3.6.2" flutter_chat_ui: dependency: transitive description: name: flutter_chat_ui - sha256: "9c19396e59de978da092a935a04542ecf9746e3d75b9b7a038638e2a1982a5a1" + sha256: "168a4231464ad00a17ea5f0813f1b58393bdd4035683ea4dc37bbe26be62891e" url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.6.15" flutter_link_previewer: dependency: transitive description: name: flutter_link_previewer - sha256: "0adc16359ce8385d623ee4b2985e702d7766d52e351bf0fd6a12366f8e49a63f" + sha256: "007069e60f42419fb59872beb7a3cc3ea21e9f1bdff5d40239f376fa62ca9f20" url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "3.2.2" flutter_linkify: dependency: transitive description: name: flutter_linkify - sha256: c89fe74de985ec22f23d3538d2249add085a4f37ac1c29fd79e1a207efb81d63 + sha256: "74669e06a8f358fee4512b4320c0b80e51cffc496607931de68d28f099254073" + url: "https://pub.dev" + source: hosted + version: "6.0.0" + flutter_parsed_text: + dependency: transitive + description: + name: flutter_parsed_text + sha256: "529cf5793b7acdf16ee0f97b158d0d4ba0bf06e7121ef180abe1a5b59e32c1e2" url: "https://pub.dev" source: hosted - version: "5.0.2" + version: "2.2.1" flutter_plugin_android_lifecycle: dependency: transitive description: @@ -193,50 +241,50 @@ packages: dependency: transitive description: name: flutter_secure_storage - sha256: "98352186ee7ad3639ccc77ad7924b773ff6883076ab952437d20f18a61f0a7c5" + sha256: "165164745e6afb5c0e3e3fcc72a012fb9e58496fb26ffb92cf22e16a821e85d0" url: "https://pub.dev" source: hosted - version: "8.0.0" + version: "9.2.2" flutter_secure_storage_linux: dependency: transitive description: name: flutter_secure_storage_linux - sha256: "0912ae29a572230ad52d8a4697e5518d7f0f429052fd51df7e5a7952c7efe2a3" + sha256: "4d91bfc23047422cbcd73ac684bc169859ee766482517c22172c86596bf1464b" url: "https://pub.dev" source: hosted - version: "1.1.3" + version: "1.2.1" flutter_secure_storage_macos: dependency: transitive description: name: flutter_secure_storage_macos - sha256: "083add01847fc1c80a07a08e1ed6927e9acd9618a35e330239d4422cd2a58c50" + sha256: "1693ab11121a5f925bbea0be725abfcfbbcf36c1e29e571f84a0c0f436147a81" url: "https://pub.dev" source: hosted - version: "3.0.0" + version: "3.1.2" flutter_secure_storage_platform_interface: dependency: transitive description: name: flutter_secure_storage_platform_interface - sha256: b3773190e385a3c8a382007893d678ae95462b3c2279e987b55d140d3b0cb81b + sha256: cf91ad32ce5adef6fba4d736a542baca9daf3beac4db2d04be350b87f69ac4a8 url: "https://pub.dev" source: hosted - version: "1.0.1" + version: "1.1.2" flutter_secure_storage_web: dependency: transitive description: name: flutter_secure_storage_web - sha256: "42938e70d4b872e856e678c423cc0e9065d7d294f45bc41fc1981a4eb4beaffe" + sha256: f4ebff989b4f07b2656fb16b47852c0aab9fed9b4ec1c70103368337bc1886a9 url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.2.1" flutter_secure_storage_windows: dependency: transitive description: name: flutter_secure_storage_windows - sha256: fc2910ec9b28d60598216c29ea763b3a96c401f0ce1d13cdf69ccb0e5c93c3ee + sha256: b20b07cb5ed4ed74fc567b78a72936203f587eba460af1df11281c9326cd3709 url: "https://pub.dev" source: hosted - version: "2.0.0" + version: "3.1.2" flutter_test: dependency: "direct dev" description: flutter @@ -247,14 +295,6 @@ packages: description: flutter source: sdk version: "0.0.0" - freezed_annotation: - dependency: transitive - description: - name: freezed_annotation - sha256: "70776c4541e5cacfe45bcaf00fe79137b8c61aa34fb5765a05ce6c57fd72c6e9" - url: "https://pub.dev" - source: hosted - version: "0.14.3" hive: dependency: transitive description: @@ -275,18 +315,18 @@ packages: dependency: transitive description: name: html - sha256: d9793e10dbe0e6c364f4c59bf3e01fb33a9b2a674bc7a1081693dba0614b6269 + sha256: "3a7812d5bcd2894edf53dfaf8cd640876cf6cef50a8f238745c8b8120ea74d3a" url: "https://pub.dev" source: hosted - version: "0.15.1" + version: "0.15.4" http: dependency: transitive description: name: http - sha256: "6aa2946395183537c8b880962d935877325d6a09a2867c3970c05c0fed6ac482" + sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2" url: "https://pub.dev" source: hosted - version: "0.13.5" + version: "0.13.6" http_parser: dependency: transitive description: @@ -299,58 +339,82 @@ packages: dependency: "direct main" description: name: image - sha256: "483a389d6ccb292b570c31b3a193779b1b0178e7eb571986d9a49904b6861227" + sha256: f31d52537dc417fdcde36088fdf11d191026fd5e4fae742491ebd40e5a8bea7d url: "https://pub.dev" source: hosted - version: "4.0.15" + version: "4.3.0" image_picker: dependency: "direct main" description: name: image_picker - sha256: "64b21d9f0e065f9ab0e4dde458076226c97382cc0c6949144cb874c62bf8e9f8" + sha256: "021834d9c0c3de46bf0fe40341fa07168407f694d9b2bb18d532dc1261867f7a" url: "https://pub.dev" source: hosted - version: "0.8.7" + version: "1.1.2" image_picker_android: dependency: transitive description: name: image_picker_android - sha256: "420ed22d2c9ce767ed96df723aaebfeb20ce92dfda8665cd2ba72d72a51ae669" + sha256: d34e0d9e024e81321b2aeed7b202ec6181cc282e6a1c0c0b4e6ad07ef1065d82 url: "https://pub.dev" source: hosted - version: "0.8.6+1" + version: "0.8.12+16" image_picker_for_web: dependency: transitive description: name: image_picker_for_web - sha256: "98f50d6b9f294c8ba35e25cc0d13b04bfddd25dbc8d32fa9d566a6572f2c081c" + sha256: "717eb042ab08c40767684327be06a5d8dbb341fe791d514e4b92c7bbe1b7bb83" url: "https://pub.dev" source: hosted - version: "2.1.12" + version: "3.0.6" image_picker_ios: dependency: transitive description: name: image_picker_ios - sha256: "50e882fe0a06bf0c8f7f5bce78d30975f279213293afc9471dc35f05617c50ff" + sha256: "4f0568120c6fcc0aaa04511cb9f9f4d29fc3d0139884b1d06be88dcec7641d6b" url: "https://pub.dev" source: hosted - version: "0.8.7+1" + version: "0.8.12+1" + image_picker_linux: + dependency: transitive + description: + name: image_picker_linux + sha256: "4ed1d9bb36f7cd60aa6e6cd479779cc56a4cb4e4de8f49d487b1aaad831300fa" + url: "https://pub.dev" + source: hosted + version: "0.2.1+1" + image_picker_macos: + dependency: transitive + description: + name: image_picker_macos + sha256: "3f5ad1e8112a9a6111c46d0b57a7be2286a9a07fc6e1976fdf5be2bd31d4ff62" + url: "https://pub.dev" + source: hosted + version: "0.2.1+1" image_picker_platform_interface: dependency: transitive description: name: image_picker_platform_interface - sha256: "1991219d9dbc42a99aff77e663af8ca51ced592cd6685c9485e3458302d3d4f8" + sha256: "9ec26d410ff46f483c5519c29c02ef0e02e13a543f882b152d4bfd2f06802f80" url: "https://pub.dev" source: hosted - version: "2.6.3" + version: "2.10.0" + image_picker_windows: + dependency: transitive + description: + name: image_picker_windows + sha256: "6ad07afc4eb1bc25f3a01084d28520496c4a3bb0cb13685435838167c9dcedeb" + url: "https://pub.dev" + source: hosted + version: "0.2.1+1" intl: dependency: transitive description: name: intl - sha256: "910f85bce16fb5c6f614e117efa303e85a1731bb0081edf3604a2ae6e9a3cc91" + sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf url: "https://pub.dev" source: hosted - version: "0.17.0" + version: "0.19.0" js: dependency: transitive description: @@ -363,98 +427,130 @@ packages: dependency: transitive description: name: json_annotation - sha256: c33da08e136c3df0190bd5bbe51ae1df4a7d96e7954d1d7249fea2968a72d317 + sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1" + url: "https://pub.dev" + source: hosted + version: "4.9.0" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" + url: "https://pub.dev" + source: hosted + version: "10.0.5" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" + url: "https://pub.dev" + source: hosted + version: "3.0.5" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" url: "https://pub.dev" source: hosted - version: "4.8.0" + version: "3.0.1" linkify: dependency: transitive description: name: linkify - sha256: bdfbdafec6cdc9cd0ebb333a868cafc046714ad508e48be8095208c54691d959 + sha256: "4139ea77f4651ab9c315b577da2dd108d9aa0bd84b5d03d33323f1970c645832" url: "https://pub.dev" source: hosted - version: "4.1.0" + version: "5.0.0" matcher: dependency: transitive description: name: matcher - sha256: "16db949ceee371e9b99d22f88fa3a73c4e59fd0afed0bd25fc336eb76c198b72" + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb url: "https://pub.dev" source: hosted - version: "0.12.13" + version: "0.12.16+1" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.2.0" + version: "0.11.1" meta: dependency: transitive description: name: meta - sha256: "6c268b42ed578a53088d834796959e4a1814b5e9e164f147f580a386e5decf42" + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 + url: "https://pub.dev" + source: hosted + version: "1.15.0" + mime: + dependency: transitive + description: + name: mime + sha256: "41a20518f0cb1256669420fdba0cd90d21561e560ac240f26ef8322e45bb7ed6" url: "https://pub.dev" source: hosted - version: "1.8.0" + version: "2.0.0" path: dependency: transitive description: name: path - sha256: db9d4f58c908a4ba5953fcee2ae317c94889433e5024c27ce74a37f94267945b + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" url: "https://pub.dev" source: hosted - version: "1.8.2" + version: "1.9.0" path_provider: dependency: "direct main" description: name: path_provider - sha256: "04890b994ee89bfa80bf3080bfec40d5a92c5c7a785ebb02c13084a099d2b6f9" + sha256: fec0d61223fba3154d87759e3cc27fe2c8dc498f6386c6d6fc80d1afdd1bf378 url: "https://pub.dev" source: hosted - version: "2.0.13" + version: "2.1.4" path_provider_android: dependency: transitive description: name: path_provider_android - sha256: a776c088d671b27f6e3aa8881d64b87b3e80201c64e8869b811325de7a76c15e + sha256: c464428172cb986b758c6d1724c603097febb8fb855aa265aeecc9280c294d4a url: "https://pub.dev" source: hosted - version: "2.0.22" + version: "2.2.12" path_provider_foundation: dependency: transitive description: name: path_provider_foundation - sha256: "026b97a6c29da75181a37aae2eba9227f5fe13cb2838c6b975ce209328b8ab4e" + sha256: f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16 url: "https://pub.dev" source: hosted - version: "2.1.3" + version: "2.4.0" path_provider_linux: dependency: transitive description: name: path_provider_linux - sha256: ab0987bf95bc591da42dffb38c77398fc43309f0b9b894dcc5d6f40c4b26c379 + sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279 url: "https://pub.dev" source: hosted - version: "2.1.7" + version: "2.2.1" path_provider_platform_interface: dependency: transitive description: name: path_provider_platform_interface - sha256: f0abc8ebd7253741f05488b4813d936b4d07c6bae3e86148a09e342ee4b08e76 + sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" url: "https://pub.dev" source: hosted - version: "2.0.5" + version: "2.1.2" path_provider_windows: dependency: transitive description: name: path_provider_windows - sha256: bcabbe399d4042b8ee687e17548d5d3f527255253b4a639f5f8d2094a9c2b45c + sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7 url: "https://pub.dev" source: hosted - version: "2.1.3" + version: "2.3.0" petitparser: dependency: transitive description: @@ -467,10 +563,10 @@ packages: dependency: transitive description: name: photo_view - sha256: aedb4371e5bf67546ecd92aed341df714f9de5db7c417ce7538a91c2b43d931a + sha256: "1fc3d970a91295fbd1364296575f854c9863f225505c28c46e0a03e48960c75e" url: "https://pub.dev" source: hosted - version: "0.12.0" + version: "0.15.0" platform: dependency: transitive description: @@ -483,18 +579,10 @@ packages: dependency: transitive description: name: plugin_platform_interface - sha256: dbf0f707c78beedc9200146ad3cb0ab4d5da13c246336987be6940f026500d3a - url: "https://pub.dev" - source: hosted - version: "2.1.3" - pointycastle: - dependency: transitive - description: - name: pointycastle - sha256: db7306cf0249f838d1a24af52b5a5887c5bf7f31d8bb4e827d071dc0939ad346 + sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" url: "https://pub.dev" source: hosted - version: "3.6.2" + version: "2.1.8" process: dependency: transitive description: @@ -507,10 +595,18 @@ packages: dependency: transitive description: name: riverpod - sha256: "13cbe0e17b659f38027986df967b3eaf7f42c519786352167fc3db1be44eae07" + sha256: "59062512288d3056b2321804332a13ffdd1bf16df70dcc8e506e411280a72959" + url: "https://pub.dev" + source: hosted + version: "2.6.1" + scroll_to_index: + dependency: transitive + description: + name: scroll_to_index + sha256: b707546e7500d9f070d63e5acf74fd437ec7eeeb68d3412ef7b0afada0b4f176 url: "https://pub.dev" source: hosted - version: "0.14.0+3" + version: "3.0.1" sky_engine: dependency: transitive description: flutter @@ -520,18 +616,26 @@ packages: dependency: transitive description: name: source_span - sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + sprintf: + dependency: transitive + description: + name: sprintf + sha256: "1fc9ffe69d4df602376b52949af107d8f5703b77cda567c4d7d86a0693120f23" url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "7.0.0" stack_trace: dependency: transitive description: name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.11.1" state_notifier: dependency: transitive description: @@ -544,10 +648,10 @@ packages: dependency: transitive description: name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" string_scanner: dependency: transitive description: @@ -560,10 +664,10 @@ packages: dependency: transitive description: name: synchronized - sha256: "33b31b6beb98100bf9add464a36a8dd03eb10c7a8cf15aeec535e9b054aaf04b" + sha256: "69fe30f3a8b04a0be0c15ae6490fc859a78ef4c43ae2dd5e8a623d45bfcf9225" url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "3.3.0+3" term_glyph: dependency: transitive description: @@ -576,10 +680,10 @@ packages: dependency: transitive description: name: test_api - sha256: ad540f65f92caa91bf21dfc8ffb8c589d6e4dc0c2267818b4cc2792857706206 + sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" url: "https://pub.dev" source: hosted - version: "0.4.16" + version: "0.7.2" typed_data: dependency: transitive description: @@ -592,74 +696,74 @@ packages: dependency: transitive description: name: url_launcher - sha256: "75f2846facd11168d007529d6cd8fcb2b750186bea046af9711f10b907e1587e" + sha256: "9d06212b1362abc2f0f0d78e6f09f726608c74e3b9462e8368bb03314aa8d603" url: "https://pub.dev" source: hosted - version: "6.1.10" + version: "6.3.1" url_launcher_android: dependency: transitive description: name: url_launcher_android - sha256: "3e2f6dfd2c7d9cd123296cab8ef66cfc2c1a13f5845f42c7a0f365690a8a7dd1" + sha256: "8fc3bae0b68c02c47c5c86fa8bfa74471d42687b0eded01b78de87872db745e2" url: "https://pub.dev" source: hosted - version: "6.0.23" + version: "6.3.12" url_launcher_ios: dependency: transitive description: name: url_launcher_ios - sha256: bb328b24d3bccc20bdf1024a0990ac4f869d57663660de9c936fb8c043edefe3 + sha256: e43b677296fadce447e987a2f519dcf5f6d1e527dc35d01ffab4fff5b8a7063e url: "https://pub.dev" source: hosted - version: "6.0.18" + version: "6.3.1" url_launcher_linux: dependency: transitive description: name: url_launcher_linux - sha256: "318c42cba924e18180c029be69caf0a1a710191b9ec49bb42b5998fdcccee3cc" + sha256: e2b9622b4007f97f504cd64c0128309dfb978ae66adbe944125ed9e1750f06af url: "https://pub.dev" source: hosted - version: "3.0.2" + version: "3.2.0" url_launcher_macos: dependency: transitive description: name: url_launcher_macos - sha256: "41988b55570df53b3dd2a7fc90c76756a963de6a8c5f8e113330cb35992e2094" + sha256: "769549c999acdb42b8bcfa7c43d72bf79a382ca7441ab18a808e101149daf672" url: "https://pub.dev" source: hosted - version: "3.0.2" + version: "3.2.1" url_launcher_platform_interface: dependency: transitive description: name: url_launcher_platform_interface - sha256: "4eae912628763eb48fc214522e58e942fd16ce195407dbf45638239523c759a6" + sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029" url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.3.2" url_launcher_web: dependency: transitive description: name: url_launcher_web - sha256: "44d79408ce9f07052095ef1f9a693c258d6373dc3944249374e30eff7219ccb0" + sha256: "772638d3b34c779ede05ba3d38af34657a05ac55b06279ea6edd409e323dca8e" url: "https://pub.dev" source: hosted - version: "2.0.14" + version: "2.3.3" url_launcher_windows: dependency: transitive description: name: url_launcher_windows - sha256: "387e227c4b979034cc52afb11d66b04ed9b288ca1f45beeef39b2ea69e714fa5" + sha256: "44cf3aabcedde30f2dba119a9dea3b0f2672fbe6fa96e85536251d678216b3c4" url: "https://pub.dev" source: hosted - version: "3.0.2" + version: "3.1.3" uuid: dependency: transitive description: name: uuid - sha256: "648e103079f7c64a36dc7d39369cabb358d377078a051d6ae2ad3aa539519313" + sha256: a5be9ef6618a7ac1e964353ef476418026db906c4facdedaa299b7a2e71690ff url: "https://pub.dev" source: hosted - version: "3.0.7" + version: "4.5.1" vector_math: dependency: transitive description: @@ -668,54 +772,86 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" + visibility_detector: + dependency: transitive + description: + name: visibility_detector + sha256: dd5cc11e13494f432d15939c3aa8ae76844c42b723398643ce9addb88a5ed420 + url: "https://pub.dev" + source: hosted + version: "0.4.0+2" + vm_service: + dependency: transitive + description: + name: vm_service + sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" + url: "https://pub.dev" + source: hosted + version: "14.2.5" + web: + dependency: transitive + description: + name: web + sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb + url: "https://pub.dev" + source: hosted + version: "1.1.0" + web_socket: + dependency: transitive + description: + name: web_socket + sha256: "3c12d96c0c9a4eec095246debcea7b86c0324f22df69893d538fcc6f1b8cce83" + url: "https://pub.dev" + source: hosted + version: "0.1.6" web_socket_channel: dependency: transitive description: name: web_socket_channel - sha256: ca49c0bc209c687b887f30527fb6a9d80040b072cc2990f34b9bec3e7663101b + sha256: "9f187088ed104edd8662ca07af4b124465893caf063ba29758f97af57e61da8f" url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "3.0.1" webview_flutter: dependency: transitive description: name: webview_flutter - sha256: b6cd42db3ced5411f3d01599906156885b18e4188f7065a8a351eb84bee347e0 + sha256: "889a0a678e7c793c308c68739996227c9661590605e70b1f6cf6b9a6634f7aec" url: "https://pub.dev" source: hosted - version: "4.0.6" + version: "4.10.0" webview_flutter_android: dependency: transitive description: name: webview_flutter_android - sha256: c849dcb6bf7367f696869006fb9575c15bdc6a1d624ae13f12de5a147a740b12 + sha256: "74693a212d990b32e0b7055d27db973a18abf31c53942063948cdfaaef9787ba" url: "https://pub.dev" source: hosted - version: "3.4.2" + version: "4.0.0" webview_flutter_platform_interface: dependency: transitive description: name: webview_flutter_platform_interface - sha256: "1939c39e2150fb4d30fd3cc59a891a49fed9935db53007df633ed83581b6117b" + sha256: d937581d6e558908d7ae3dc1989c4f87b786891ab47bb9df7de548a151779d8d url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.10.0" webview_flutter_wkwebview: dependency: transitive description: name: webview_flutter_wkwebview - sha256: ab12479f7a0cf112b9420c36aaf206a1ca47cd60cd42de74a4be2e97a697587b + sha256: d4034901d96357beb1b6717ebf7d583c88e40cfc6eb85fe76dd1bf0979a9f251 url: "https://pub.dev" source: hosted - version: "3.2.1" + version: "3.16.0" win32: - dependency: transitive + dependency: "direct main" description: name: win32 - sha256: c9ebe7ee4ab0c2194e65d3a07d8c54c5d00bb001b76081c4a04cdb8448b59e46 + sha256: e1d0cc62e65dc2561f5071fcbccecf58ff20c344f8f3dc7d4922df372a11df1f url: "https://pub.dev" source: hosted - version: "3.1.3" + version: "5.7.1" xdg_directories: dependency: transitive description: @@ -733,5 +869,5 @@ packages: source: hosted version: "6.2.2" sdks: - dart: ">=2.18.0 <3.0.0" - flutter: ">=3.3.0" + dart: ">=3.5.0 <4.0.0" + flutter: ">=3.24.0" diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 8631553..abc6610 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -18,7 +18,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: ">=2.7.0 <3.0.0" + sdk: ">=2.12.0 <3.0.0" dependencies: flutter: @@ -29,9 +29,10 @@ dependencies: # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.2 - image_picker: ^0.8.7 - image: ^4.0.15 - path_provider: ^2.0.13 + image_picker: ^1.1.2 + image: ^4.3.0 + path_provider: ^2.1.4 + win32: ^5.7.1 dev_dependencies: flutter_test: diff --git a/lib/data/local/entity/chatwoot_contact.g.dart b/lib/data/local/entity/chatwoot_contact.g.dart new file mode 100644 index 0000000..ba86e0d --- /dev/null +++ b/lib/data/local/entity/chatwoot_contact.g.dart @@ -0,0 +1,75 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'chatwoot_contact.dart'; + +// ************************************************************************** +// TypeAdapterGenerator +// ************************************************************************** + +class ChatwootContactAdapter extends TypeAdapter { + @override + final int typeId = 0; + + @override + ChatwootContact read(BinaryReader reader) { + final numOfFields = reader.readByte(); + final fields = { + for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(), + }; + return ChatwootContact( + id: fields[0] as int, + contactIdentifier: fields[1] as String?, + pubsubToken: fields[2] as String?, + name: fields[3] as String, + email: fields[4] as String, + ); + } + + @override + void write(BinaryWriter writer, ChatwootContact obj) { + writer + ..writeByte(5) + ..writeByte(0) + ..write(obj.id) + ..writeByte(1) + ..write(obj.contactIdentifier) + ..writeByte(2) + ..write(obj.pubsubToken) + ..writeByte(3) + ..write(obj.name) + ..writeByte(4) + ..write(obj.email); + } + + @override + int get hashCode => typeId.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is ChatwootContactAdapter && + runtimeType == other.runtimeType && + typeId == other.typeId; +} + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ChatwootContact _$ChatwootContactFromJson(Map json) => + ChatwootContact( + id: (json['id'] as num).toInt(), + contactIdentifier: json['source_id'] as String?, + pubsubToken: json['pubsub_token'] as String?, + name: json['name'] as String, + email: json['email'] as String, + ); + +Map _$ChatwootContactToJson(ChatwootContact instance) => + { + 'id': instance.id, + 'source_id': instance.contactIdentifier, + 'pubsub_token': instance.pubsubToken, + 'name': instance.name, + 'email': instance.email, + }; diff --git a/lib/data/local/entity/chatwoot_conversation.g.dart b/lib/data/local/entity/chatwoot_conversation.g.dart new file mode 100644 index 0000000..ab4ed2e --- /dev/null +++ b/lib/data/local/entity/chatwoot_conversation.g.dart @@ -0,0 +1,75 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'chatwoot_conversation.dart'; + +// ************************************************************************** +// TypeAdapterGenerator +// ************************************************************************** + +class ChatwootConversationAdapter extends TypeAdapter { + @override + final int typeId = 1; + + @override + ChatwootConversation read(BinaryReader reader) { + final numOfFields = reader.readByte(); + final fields = { + for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(), + }; + return ChatwootConversation( + id: fields[0] as int, + inboxId: fields[1] as int, + messages: (fields[2] as List).cast(), + contact: fields[3] as ChatwootContact, + ); + } + + @override + void write(BinaryWriter writer, ChatwootConversation obj) { + writer + ..writeByte(4) + ..writeByte(0) + ..write(obj.id) + ..writeByte(1) + ..write(obj.inboxId) + ..writeByte(2) + ..write(obj.messages) + ..writeByte(3) + ..write(obj.contact); + } + + @override + int get hashCode => typeId.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is ChatwootConversationAdapter && + runtimeType == other.runtimeType && + typeId == other.typeId; +} + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ChatwootConversation _$ChatwootConversationFromJson( + Map json) => + ChatwootConversation( + id: (json['id'] as num).toInt(), + inboxId: (json['inbox_id'] as num).toInt(), + messages: (json['messages'] as List) + .map((e) => ChatwootMessage.fromJson(e as Map)) + .toList(), + contact: + ChatwootContact.fromJson(json['contact'] as Map), + ); + +Map _$ChatwootConversationToJson( + ChatwootConversation instance) => + { + 'id': instance.id, + 'inbox_id': instance.inboxId, + 'messages': instance.messages.map((e) => e.toJson()).toList(), + 'contact': instance.contact.toJson(), + }; diff --git a/lib/data/local/entity/chatwoot_message.g.dart b/lib/data/local/entity/chatwoot_message.g.dart new file mode 100644 index 0000000..c963e75 --- /dev/null +++ b/lib/data/local/entity/chatwoot_message.g.dart @@ -0,0 +1,98 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'chatwoot_message.dart'; + +// ************************************************************************** +// TypeAdapterGenerator +// ************************************************************************** + +class ChatwootMessageAdapter extends TypeAdapter { + @override + final int typeId = 2; + + @override + ChatwootMessage read(BinaryReader reader) { + final numOfFields = reader.readByte(); + final fields = { + for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(), + }; + return ChatwootMessage( + id: fields[0] as int, + content: fields[1] as String?, + messageType: fields[2] as int?, + contentType: fields[3] as String?, + contentAttributes: fields[4] as dynamic, + createdAt: fields[5] as String, + conversationId: fields[6] as int?, + attachments: (fields[7] as List?)?.cast(), + sender: fields[8] as ChatwootEventMessageUser?, + ); + } + + @override + void write(BinaryWriter writer, ChatwootMessage obj) { + writer + ..writeByte(9) + ..writeByte(0) + ..write(obj.id) + ..writeByte(1) + ..write(obj.content) + ..writeByte(2) + ..write(obj.messageType) + ..writeByte(3) + ..write(obj.contentType) + ..writeByte(4) + ..write(obj.contentAttributes) + ..writeByte(5) + ..write(obj.createdAt) + ..writeByte(6) + ..write(obj.conversationId) + ..writeByte(7) + ..write(obj.attachments) + ..writeByte(8) + ..write(obj.sender); + } + + @override + int get hashCode => typeId.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is ChatwootMessageAdapter && + runtimeType == other.runtimeType && + typeId == other.typeId; +} + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ChatwootMessage _$ChatwootMessageFromJson(Map json) => + ChatwootMessage( + id: idFromJson(json['id']), + content: json['content'] as String?, + messageType: messageTypeFromJson(json['message_type']), + contentType: json['content_type'] as String?, + contentAttributes: json['content_attributes'], + createdAt: createdAtFromJson(json['created_at']), + conversationId: idFromJson(json['conversation_id']), + attachments: json['attachments'] as List?, + sender: json['sender'] == null + ? null + : ChatwootEventMessageUser.fromJson( + json['sender'] as Map), + ); + +Map _$ChatwootMessageToJson(ChatwootMessage instance) => + { + 'id': instance.id, + 'content': instance.content, + 'message_type': instance.messageType, + 'content_type': instance.contentType, + 'content_attributes': instance.contentAttributes, + 'created_at': instance.createdAt, + 'conversation_id': instance.conversationId, + 'attachments': instance.attachments, + 'sender': instance.sender?.toJson(), + }; diff --git a/lib/data/local/entity/chatwoot_user.g.dart b/lib/data/local/entity/chatwoot_user.g.dart new file mode 100644 index 0000000..39bc12a --- /dev/null +++ b/lib/data/local/entity/chatwoot_user.g.dart @@ -0,0 +1,79 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'chatwoot_user.dart'; + +// ************************************************************************** +// TypeAdapterGenerator +// ************************************************************************** + +class ChatwootUserAdapter extends TypeAdapter { + @override + final int typeId = 3; + + @override + ChatwootUser read(BinaryReader reader) { + final numOfFields = reader.readByte(); + final fields = { + for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(), + }; + return ChatwootUser( + identifier: fields[0] as String?, + identifierHash: fields[1] as String?, + name: fields[2] as String?, + email: fields[3] as String?, + avatarUrl: fields[4] as String?, + customAttributes: fields[5] as dynamic, + ); + } + + @override + void write(BinaryWriter writer, ChatwootUser obj) { + writer + ..writeByte(6) + ..writeByte(0) + ..write(obj.identifier) + ..writeByte(1) + ..write(obj.identifierHash) + ..writeByte(2) + ..write(obj.name) + ..writeByte(3) + ..write(obj.email) + ..writeByte(4) + ..write(obj.avatarUrl) + ..writeByte(5) + ..write(obj.customAttributes); + } + + @override + int get hashCode => typeId.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is ChatwootUserAdapter && + runtimeType == other.runtimeType && + typeId == other.typeId; +} + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ChatwootUser _$ChatwootUserFromJson(Map json) => ChatwootUser( + identifier: json['identifier'] as String?, + identifierHash: json['identifier_hash'] as String?, + name: json['name'] as String?, + email: json['email'] as String?, + avatarUrl: json['avatar_url'] as String?, + customAttributes: json['custom_attributes'], + ); + +Map _$ChatwootUserToJson(ChatwootUser instance) => + { + 'identifier': instance.identifier, + 'identifier_hash': instance.identifierHash, + 'name': instance.name, + 'email': instance.email, + 'avatar_url': instance.avatarUrl, + 'custom_attributes': instance.customAttributes, + }; diff --git a/lib/data/remote/requests/chatwoot_action.g.dart b/lib/data/remote/requests/chatwoot_action.g.dart new file mode 100644 index 0000000..8761cf0 --- /dev/null +++ b/lib/data/remote/requests/chatwoot_action.g.dart @@ -0,0 +1,23 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'chatwoot_action.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ChatwootAction _$ChatwootActionFromJson(Map json) => + ChatwootAction( + identifier: json['identifier'] as String, + data: json['data'] == null + ? null + : ChatwootActionData.fromJson(json['data'] as Map), + command: json['command'] as String, + ); + +Map _$ChatwootActionToJson(ChatwootAction instance) => + { + 'identifier': instance.identifier, + 'command': instance.command, + 'data': instance.data?.toJson(), + }; diff --git a/lib/data/remote/requests/chatwoot_action_data.g.dart b/lib/data/remote/requests/chatwoot_action_data.g.dart new file mode 100644 index 0000000..adef2a0 --- /dev/null +++ b/lib/data/remote/requests/chatwoot_action_data.g.dart @@ -0,0 +1,17 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'chatwoot_action_data.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ChatwootActionData _$ChatwootActionDataFromJson(Map json) => + ChatwootActionData( + action: actionTypeFromJson(json['action'] as String?), + ); + +Map _$ChatwootActionDataToJson(ChatwootActionData instance) => + { + 'action': actionTypeToJson(instance.action), + }; diff --git a/lib/data/remote/requests/chatwoot_new_message_request.g.dart b/lib/data/remote/requests/chatwoot_new_message_request.g.dart new file mode 100644 index 0000000..015bcd2 --- /dev/null +++ b/lib/data/remote/requests/chatwoot_new_message_request.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'chatwoot_new_message_request.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ChatwootNewMessageRequest _$ChatwootNewMessageRequestFromJson( + Map json) => + ChatwootNewMessageRequest( + content: json['content'] as String, + echoId: json['echo_id'] as String, + ); + +Map _$ChatwootNewMessageRequestToJson( + ChatwootNewMessageRequest instance) => + { + 'content': instance.content, + 'echo_id': instance.echoId, + }; diff --git a/lib/data/remote/responses/chatwoot_event.g.dart b/lib/data/remote/responses/chatwoot_event.g.dart new file mode 100644 index 0000000..606610f --- /dev/null +++ b/lib/data/remote/responses/chatwoot_event.g.dart @@ -0,0 +1,160 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'chatwoot_event.dart'; + +// ************************************************************************** +// TypeAdapterGenerator +// ************************************************************************** + +class ChatwootEventMessageUserAdapter + extends TypeAdapter { + @override + final int typeId = 4; + + @override + ChatwootEventMessageUser read(BinaryReader reader) { + final numOfFields = reader.readByte(); + final fields = { + for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(), + }; + return ChatwootEventMessageUser( + id: fields[1] as int?, + avatarUrl: fields[0] as String?, + name: fields[2] as String?, + thumbnail: fields[3] as String?, + ); + } + + @override + void write(BinaryWriter writer, ChatwootEventMessageUser obj) { + writer + ..writeByte(4) + ..writeByte(0) + ..write(obj.avatarUrl) + ..writeByte(1) + ..write(obj.id) + ..writeByte(2) + ..write(obj.name) + ..writeByte(3) + ..write(obj.thumbnail); + } + + @override + int get hashCode => typeId.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is ChatwootEventMessageUserAdapter && + runtimeType == other.runtimeType && + typeId == other.typeId; +} + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ChatwootEvent _$ChatwootEventFromJson(Map json) => + ChatwootEvent( + type: eventTypeFromJson(json['type'] as String?), + message: eventMessageFromJson(json['message']), + identifier: json['identifier'] as String?, + ); + +Map _$ChatwootEventToJson(ChatwootEvent instance) => + { + 'type': eventTypeToJson(instance.type), + 'identifier': instance.identifier, + 'message': instance.message?.toJson(), + }; + +ChatwootEventMessage _$ChatwootEventMessageFromJson( + Map json) => + ChatwootEventMessage( + data: json['data'] == null + ? null + : ChatwootEventMessageData.fromJson( + json['data'] as Map), + event: eventMessageTypeFromJson(json['event'] as String?), + ); + +Map _$ChatwootEventMessageToJson( + ChatwootEventMessage instance) => + { + 'data': instance.data?.toJson(), + 'event': eventMessageTypeToJson(instance.event), + }; + +ChatwootEventMessageData _$ChatwootEventMessageDataFromJson( + Map json) => + ChatwootEventMessageData( + id: (json['id'] as num?)?.toInt(), + user: json['user'] == null + ? null + : ChatwootEventMessageUser.fromJson( + json['user'] as Map), + conversation: json['conversation'], + echoId: json['echo_id'] as String?, + sender: json['sender'] == null + ? null + : ChatwootEventMessageUser.fromJson( + json['sender'] as Map), + conversationId: (json['conversation_id'] as num?)?.toInt(), + createdAt: json['created_at'], + contentAttributes: json['content_attributes'], + contentType: json['content_type'] as String?, + messageType: (json['message_type'] as num?)?.toInt(), + content: json['content'] as String?, + inboxId: (json['inbox_id'] as num?)?.toInt(), + sourceId: json['source_id'] as String?, + updatedAt: json['updated_at'], + status: json['status'] as String?, + accountId: (json['account_id'] as num?)?.toInt(), + externalSourceIds: json['external_source_ids'], + private: json['private'] as bool?, + senderId: (json['sender_id'] as num?)?.toInt(), + users: json['users'], + ); + +Map _$ChatwootEventMessageDataToJson( + ChatwootEventMessageData instance) => + { + 'account_id': instance.accountId, + 'content': instance.content, + 'content_attributes': instance.contentAttributes, + 'content_type': instance.contentType, + 'conversation_id': instance.conversationId, + 'created_at': instance.createdAt, + 'echo_id': instance.echoId, + 'external_source_ids': instance.externalSourceIds, + 'id': instance.id, + 'inbox_id': instance.inboxId, + 'message_type': instance.messageType, + 'private': instance.private, + 'sender': instance.sender?.toJson(), + 'sender_id': instance.senderId, + 'source_id': instance.sourceId, + 'status': instance.status, + 'updated_at': instance.updatedAt, + 'conversation': instance.conversation, + 'user': instance.user?.toJson(), + 'users': instance.users, + }; + +ChatwootEventMessageUser _$ChatwootEventMessageUserFromJson( + Map json) => + ChatwootEventMessageUser( + id: (json['id'] as num?)?.toInt(), + avatarUrl: json['avatar_url'] as String?, + name: json['name'] as String?, + thumbnail: json['thumbnail'] as String?, + ); + +Map _$ChatwootEventMessageUserToJson( + ChatwootEventMessageUser instance) => + { + 'avatar_url': instance.avatarUrl, + 'id': instance.id, + 'name': instance.name, + 'thumbnail': instance.thumbnail, + }; diff --git a/lib/data/remote/service/chatwoot_client_auth_service.dart b/lib/data/remote/service/chatwoot_client_auth_service.dart index e809b5c..21e7b19 100644 --- a/lib/data/remote/service/chatwoot_client_auth_service.dart +++ b/lib/data/remote/service/chatwoot_client_auth_service.dart @@ -46,7 +46,7 @@ class ChatwootClientAuthServiceImpl extends ChatwootClientAuthService { } } on DioError catch (e) { throw ChatwootClientException( - e.message, ChatwootClientExceptionType.CREATE_CONTACT_FAILED); + e.message.toString(), ChatwootClientExceptionType.CREATE_CONTACT_FAILED); } } @@ -69,7 +69,7 @@ class ChatwootClientAuthServiceImpl extends ChatwootClientAuthService { } } on DioError catch (e) { throw ChatwootClientException( - e.message, ChatwootClientExceptionType.CREATE_CONVERSATION_FAILED); + e.message.toString(), ChatwootClientExceptionType.CREATE_CONVERSATION_FAILED); } } } diff --git a/lib/data/remote/service/chatwoot_client_service.dart b/lib/data/remote/service/chatwoot_client_service.dart index 3a7a965..45892a3 100644 --- a/lib/data/remote/service/chatwoot_client_service.dart +++ b/lib/data/remote/service/chatwoot_client_service.dart @@ -60,7 +60,7 @@ class ChatwootClientServiceImpl extends ChatwootClientService { } } on DioError catch (e) { throw ChatwootClientException( - e.message, ChatwootClientExceptionType.SEND_MESSAGE_FAILED); + e.message.toString(), ChatwootClientExceptionType.SEND_MESSAGE_FAILED); } } @@ -81,7 +81,7 @@ class ChatwootClientServiceImpl extends ChatwootClientService { } } on DioError catch (e) { throw ChatwootClientException( - e.message, ChatwootClientExceptionType.GET_MESSAGES_FAILED); + e.message.toString(), ChatwootClientExceptionType.GET_MESSAGES_FAILED); } } @@ -100,7 +100,7 @@ class ChatwootClientServiceImpl extends ChatwootClientService { } } on DioError catch (e) { throw ChatwootClientException( - e.message, ChatwootClientExceptionType.GET_CONTACT_FAILED); + e.message.toString(), ChatwootClientExceptionType.GET_CONTACT_FAILED); } } @@ -121,7 +121,7 @@ class ChatwootClientServiceImpl extends ChatwootClientService { } } on DioError catch (e) { throw ChatwootClientException( - e.message, ChatwootClientExceptionType.GET_CONVERSATION_FAILED); + e.message.toString(), ChatwootClientExceptionType.GET_CONVERSATION_FAILED); } } @@ -141,7 +141,7 @@ class ChatwootClientServiceImpl extends ChatwootClientService { } } on DioError catch (e) { throw ChatwootClientException( - e.message, ChatwootClientExceptionType.UPDATE_CONTACT_FAILED); + e.message.toString(), ChatwootClientExceptionType.UPDATE_CONTACT_FAILED); } } @@ -162,7 +162,7 @@ class ChatwootClientServiceImpl extends ChatwootClientService { } } on DioError catch (e) { throw ChatwootClientException( - e.message, ChatwootClientExceptionType.UPDATE_MESSAGE_FAILED); + e.message.toString(), ChatwootClientExceptionType.UPDATE_MESSAGE_FAILED); } } diff --git a/lib/ui/chatwoot_chat_page.dart b/lib/ui/chatwoot_chat_page.dart index 19ed99a..a947091 100644 --- a/lib/ui/chatwoot_chat_page.dart +++ b/lib/ui/chatwoot_chat_page.dart @@ -43,7 +43,7 @@ class ChatwootChat extends StatefulWidget { final double? onEndReachedThreshold; /// See [Message.onMessageLongPress] - final void Function(types.Message)? onMessageLongPress; + final void Function(BuildContext context,types.Message)? onMessageLongPress; /// See [Message.onMessageTap] final void Function(types.Message)? onMessageTap; @@ -60,7 +60,7 @@ class ChatwootChat extends StatefulWidget { /// Show user names for received messages. final bool showUserNames; - final ChatwootChatTheme theme; + final ChatwootChatTheme? theme; /// See [ChatwootL10n] final ChatwootL10n l10n; @@ -131,7 +131,7 @@ class ChatwootChat extends StatefulWidget { this.onTextChanged, this.showUserAvatars = true, this.showUserNames = true, - this.theme = const ChatwootChatTheme(), + this.theme, this.l10n = const ChatwootL10n(), this.timeFormat, this.dateFormat, @@ -333,7 +333,7 @@ class _ChatwootChatState extends State { }); } - void _handleMessageTap(types.Message message) async { + void _handleMessageTap(BuildContext context, types.Message message) async { if (message.status == types.Status.error && message is types.TextMessage) { _handleResendMessage(message); } @@ -345,7 +345,7 @@ class _ChatwootChatState extends State { types.PreviewData previewData, ) { final index = _messages.indexWhere((element) => element.id == message.id); - final updatedMessage = _messages[index].copyWith(previewData: previewData); + final updatedMessage = _messages[index]; WidgetsBinding.instance.addPostFrameCallback((_) { setState(() { @@ -402,7 +402,7 @@ class _ChatwootChatState extends State { final horizontalPadding = widget.isPresentedInDialog ? 8.0 : 16.0; return Scaffold( appBar: widget.appBar, - backgroundColor: widget.theme.backgroundColor, + backgroundColor: widget.theme?.backgroundColor ?? ChatwootChatTheme().backgroundColor, body: Column( children: [ Flexible( @@ -418,12 +418,12 @@ class _ChatwootChatState extends State { onEndReached: widget.onEndReached, onEndReachedThreshold: widget.onEndReachedThreshold, onMessageLongPress: widget.onMessageLongPress, - onTextChanged: widget.onTextChanged, + showUserAvatars: widget.showUserAvatars, showUserNames: widget.showUserNames, timeFormat: widget.timeFormat ?? DateFormat.Hm(), dateFormat: widget.timeFormat ?? DateFormat("EEEE MMMM d"), - theme: widget.theme, + theme: widget.theme ?? ChatwootChatTheme(), l10n: widget.l10n, ), ), diff --git a/lib/ui/chatwoot_chat_theme.dart b/lib/ui/chatwoot_chat_theme.dart index a8d5c24..f2722b0 100644 --- a/lib/ui/chatwoot_chat_theme.dart +++ b/lib/ui/chatwoot_chat_theme.dart @@ -22,12 +22,12 @@ class ChatwootChatTheme extends ChatTheme { Widget? deliveredIcon, Widget? documentIcon, TextStyle emptyChatPlaceholderTextStyle = const TextStyle( - color: NEUTRAL_2, + color: Colors.black54, fontSize: 16, fontWeight: FontWeight.w500, height: 1.5, ), - Color errorColor = ERROR, + Color errorColor = Colors.red, Widget? errorIcon, Color inputBackgroundColor = Colors.white, BorderRadius inputBorderRadius = const BorderRadius.all( @@ -48,20 +48,20 @@ class ChatwootChatTheme extends ChatTheme { height: 1.5, ), TextStyle receivedMessageCaptionTextStyle = const TextStyle( - color: NEUTRAL_2, + color: Colors.black54, fontSize: 12, fontWeight: FontWeight.w500, height: 1.333, ), - Color receivedMessageDocumentIconColor = PRIMARY, + Color receivedMessageDocumentIconColor = CHATWOOT_COLOR_PRIMARY, TextStyle receivedMessageLinkDescriptionTextStyle = const TextStyle( - color: NEUTRAL_0, + color: Colors.black54, fontSize: 14, fontWeight: FontWeight.w400, height: 1.428, ), TextStyle receivedMessageLinkTitleTextStyle = const TextStyle( - color: NEUTRAL_0, + color: Colors.black87, fontSize: 16, fontWeight: FontWeight.w800, height: 1.375, @@ -77,27 +77,27 @@ class ChatwootChatTheme extends ChatTheme { height: 1.5, ), TextStyle sentMessageCaptionTextStyle = const TextStyle( - color: NEUTRAL_7_WITH_OPACITY, + color: Colors.white54, fontSize: 12, fontWeight: FontWeight.w500, height: 1.333, ), - Color sentMessageDocumentIconColor = NEUTRAL_7, + Color sentMessageDocumentIconColor = Colors.white54, TextStyle sentMessageLinkDescriptionTextStyle = const TextStyle( - color: NEUTRAL_7, + color: Colors.white54, fontSize: 14, fontWeight: FontWeight.w400, height: 1.428, ), TextStyle sentMessageLinkTitleTextStyle = const TextStyle( - color: NEUTRAL_7, + color: Colors.white, fontSize: 16, fontWeight: FontWeight.w800, height: 1.375, ), List userAvatarNameColors = CHATWOOT_AVATAR_COLORS, TextStyle userAvatarTextStyle = const TextStyle( - color: NEUTRAL_7, + color: Colors.black87, fontSize: 12, fontWeight: FontWeight.w800, height: 1.333, @@ -108,6 +108,48 @@ class ChatwootChatTheme extends ChatTheme { fontWeight: FontWeight.w800, height: 1.333, ), + EdgeInsets padding4= const EdgeInsets.all(4), + EdgeInsets padding8 = const EdgeInsets.all(8), + EdgeInsets padding12 = const EdgeInsets.all(12), + EdgeInsets paddingHorSym8 = const EdgeInsets.symmetric(horizontal: 8), + Color inputSurfaceTintColor = const Color(0xCEF4F6FB), + SystemMessageTheme systemMessageTheme = const SystemMessageTheme( + margin: EdgeInsets.only( + bottom: 24, + top: 8, + left: 8, + right: 8, + ), + textStyle: TextStyle( + color: neutral2, + fontSize: 12, + fontWeight: FontWeight.w800, + height: 1.333, + ), + ), + TypingIndicatorTheme typingIndicatorTheme = const TypingIndicatorTheme( + animatedCirclesColor: neutral1, + animatedCircleSize: 5.0, + bubbleBorder: BorderRadius.all(Radius.circular(27.0)), + bubbleColor: neutral7, + countAvatarColor: primary, + countTextColor: secondary, + multipleUserTextStyle: TextStyle( + fontSize: 12, + fontWeight: FontWeight.w500, + color: neutral2, + ), + ), + UnreadHeaderTheme unreadHeaderTheme = const UnreadHeaderTheme( + color: secondary, + textStyle: TextStyle( + color: neutral2, + fontSize: 12, + fontWeight: FontWeight.w500, + height: 1.333, + ), + ), + }) : super( attachmentButtonIcon: attachmentButtonIcon, backgroundColor: backgroundColor, @@ -142,5 +184,28 @@ class ChatwootChatTheme extends ChatTheme { userAvatarNameColors: userAvatarNameColors, userAvatarTextStyle: userAvatarTextStyle, userNameTextStyle: userNameTextStyle, + attachmentButtonMargin: null, + userAvatarImageBackgroundColor: Colors.transparent, + // Add the required parameters with default values + dateDividerMargin: paddingHorSym8, + inputSurfaceTintColor: inputSurfaceTintColor, + inputElevation: 2.0, + inputMargin: padding8, + inputPadding: padding12, + inputTextDecoration: const InputDecoration(), + messageInsetsHorizontal: 8.0, + messageInsetsVertical: 4.0, + messageMaxWidth: 240.0, + receivedEmojiMessageTextStyle: const TextStyle( + fontSize: 28, + ), + sendButtonMargin: padding8, + sentEmojiMessageTextStyle: const TextStyle( + fontSize: 28, + ), + statusIconPadding: padding4, + systemMessageTheme: systemMessageTheme, + typingIndicatorTheme: typingIndicatorTheme, + unreadHeaderTheme: unreadHeaderTheme, ); } diff --git a/lib/ui/chatwoot_l10n.dart b/lib/ui/chatwoot_l10n.dart index ed6d187..5e2cd10 100644 --- a/lib/ui/chatwoot_l10n.dart +++ b/lib/ui/chatwoot_l10n.dart @@ -29,6 +29,17 @@ class ChatwootL10n extends ChatL10n { /// Message when agent resolves conversation final String conversationResolvedMessage; + /// Label for the unread messages header. + final String unreadMessagesLabel; + + final String isTyping; + + /// Word 'others', currently part of the typing indicator. + final String others; + + /// Word 'and', currently part of the typing indicator. + final String and; + /// Creates a new chatwoot l10n const ChatwootL10n( {this.attachmentButtonAccessibilityLabel = "", @@ -40,12 +51,22 @@ class ChatwootL10n extends ChatL10n { this.inputPlaceholder = "Type your message", this.sendButtonAccessibilityLabel = "Send Message", this.conversationResolvedMessage = - "Your ticket has been marked as resolved"}) + "Your ticket has been marked as resolved", + this.and = '', + this.isTyping = '', + this.others = '', + this.unreadMessagesLabel = '' , + }) : super( attachmentButtonAccessibilityLabel: attachmentButtonAccessibilityLabel, emptyChatPlaceholder: emptyChatPlaceholder, fileButtonAccessibilityLabel: fileButtonAccessibilityLabel, inputPlaceholder: inputPlaceholder, - sendButtonAccessibilityLabel: sendButtonAccessibilityLabel); + sendButtonAccessibilityLabel: sendButtonAccessibilityLabel, + and: and, + isTyping: isTyping, + others: others, + unreadMessagesLabel: unreadMessagesLabel + ); } diff --git a/pubspec.lock b/pubspec.lock index 0d1087e..36743fe 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,34 +5,39 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - sha256: "98d1d33ed129b372846e862de23a0fc365745f4d7b5e786ce667fcbbb7ac5c07" + sha256: f256b0c0ba6c7577c15e2e4e114755640a875e885099367bf6e012b19314c834 url: "https://pub.dev" source: hosted - version: "55.0.0" + version: "72.0.0" + _macros: + dependency: transitive + description: dart + source: sdk + version: "0.3.2" analyzer: dependency: transitive description: name: analyzer - sha256: "881348aed9b0b425882c97732629a6a31093c8ff20fc4b3b03fb9d3d50a3a126" + sha256: b652861553cd3990d8ed361f7979dc6d7053a9ac8843fa73820ab68ce5410139 url: "https://pub.dev" source: hosted - version: "5.7.1" + version: "6.7.0" args: dependency: transitive description: name: args - sha256: "4cab82a83ffef80b262ddedf47a0a8e56ee6fbf7fe21e6e768b02792034dd440" + sha256: bf9f5caeea8d8fe6721a9c358dd8a5c1947b27f1cfaa18b39c301273594919e6 url: "https://pub.dev" source: hosted - version: "2.4.0" + version: "2.6.0" async: dependency: "direct main" description: name: async - sha256: bfe67ef28df125b7dddcea62755991f807aa39a2492a23e1550161692950bbe0 + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" url: "https://pub.dev" source: hosted - version: "2.10.0" + version: "2.11.0" boolean_selector: dependency: transitive description: @@ -45,10 +50,10 @@ packages: dependency: transitive description: name: build - sha256: "3fbda25365741f8251b39f3917fb3c8e286a96fd068a5a242e11c2012d495777" + sha256: "80184af8b6cb3e5c1c4ec6d8544d27711700bc3e6d2efad04238c7b5290889f0" url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.4.1" build_config: dependency: transitive description: @@ -61,34 +66,34 @@ packages: dependency: transitive description: name: build_daemon - sha256: "757153e5d9cd88253cb13f28c2fb55a537dc31fefd98137549895b5beb7c6169" + sha256: "79b2aef6ac2ed00046867ed354c88778c9c0f029df8a20fe10b5436826721ef9" url: "https://pub.dev" source: hosted - version: "3.1.1" + version: "4.0.2" build_resolvers: dependency: transitive description: name: build_resolvers - sha256: db49b8609ef8c81cca2b310618c3017c00f03a92af44c04d310b907b2d692d95 + sha256: "339086358431fa15d7eca8b6a36e5d783728cf025e559b834f4609a1fcfb7b0a" url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.4.2" build_runner: dependency: "direct dev" description: name: build_runner - sha256: b0a8a7b8a76c493e85f1b84bffa0588859a06197863dba8c9036b15581fd9727 + sha256: "028819cfb90051c6b5440c7e574d1896f8037e3c96cf17aaeb054c9311cfbf4d" url: "https://pub.dev" source: hosted - version: "2.3.3" + version: "2.4.13" build_runner_core: dependency: transitive description: name: build_runner_core - sha256: "0db1b64c84fa803603fa406f8721959036e898cc9575d6ce4a3067581b9276c0" + sha256: f8126682b87a7282a339b871298cc12009cb67109cfa1614d6436fb0289193e0 url: "https://pub.dev" source: hosted - version: "7.2.2" + version: "7.3.2" built_collection: dependency: transitive description: @@ -101,26 +106,26 @@ packages: dependency: transitive description: name: built_value - sha256: "31b7c748fd4b9adf8d25d72a4c4a59ef119f12876cf414f94f8af5131d5fa2b0" + sha256: c7913a9737ee4007efedaffc968c049fd0f3d0e49109e778edc10de9426005cb url: "https://pub.dev" source: hosted - version: "8.4.4" + version: "8.9.2" characters: dependency: transitive description: name: characters - sha256: e6a326c8af69605aec75ed6c187d06b349707a27fbff8222ca9cc2cff167975c + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" url: "https://pub.dev" source: hosted - version: "1.2.1" + version: "1.3.0" checked_yaml: dependency: transitive description: name: checked_yaml - sha256: dd007e4fb8270916820a0d66e24f619266b60773cddd082c6439341645af2659 + sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "2.0.3" clock: dependency: transitive description: @@ -133,66 +138,74 @@ packages: dependency: transitive description: name: code_builder - sha256: "0d43dd1288fd145de1ecc9a3948ad4a6d5a82f0a14c4fdd0892260787d975cbe" + sha256: f692079e25e7869c14132d39f223f8eec9830eb76131925143b2129c4bb01b37 url: "https://pub.dev" source: hosted - version: "4.4.0" + version: "4.10.0" collection: dependency: transitive description: name: collection - sha256: cfc915e6923fe5ce6e153b0723c753045de46de1b4d63771530504004a45fae0 + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a url: "https://pub.dev" source: hosted - version: "1.17.0" + version: "1.18.0" convert: dependency: transitive description: name: convert - sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" + sha256: b30acd5944035672bc15c6b7a8b47d773e41e2f17de064350988c5d02adb1c68 url: "https://pub.dev" source: hosted - version: "3.1.1" + version: "3.1.2" crypto: dependency: transitive description: name: crypto - sha256: aa274aa7774f8964e4f4f38cc994db7b6158dd36e9187aaceaddc994b35c6c67 + sha256: "1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855" url: "https://pub.dev" source: hosted - version: "3.0.2" + version: "3.0.6" csslib: dependency: transitive description: name: csslib - sha256: b36c7f7e24c0bdf1bf9a3da461c837d1de64b9f8beb190c9011d8c72a3dfd745 + sha256: "706b5707578e0c1b4b7550f64078f0a0f19dec3f50a178ffae7006b0a9ca58fb" url: "https://pub.dev" source: hosted - version: "0.17.2" + version: "1.0.0" dart_style: dependency: transitive description: name: dart_style - sha256: "6d691edde054969f0e0f26abb1b30834b5138b963793e56f69d3a9a4435e6352" + sha256: "7856d364b589d1f08986e140938578ed36ed948581fbc3bc9aef1805039ac5ab" url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "2.3.7" diffutil_dart: dependency: transitive description: name: diffutil_dart - sha256: "21bcad3fcc89389da5c72c59b9da31eabb301a6548f715c17b0dfdd27d2ac6d5" + sha256: "5e74883aedf87f3b703cb85e815bdc1ed9208b33501556e4a8a5572af9845c81" url: "https://pub.dev" source: hosted - version: "2.0.0+1" + version: "4.0.1" dio: dependency: "direct main" description: name: dio - sha256: "7d328c4d898a61efc3cd93655a0955858e29a0aa647f0f9e02d59b3bb275e2e8" + sha256: "5598aa796bbf4699afd5c67c0f5f6e2ed542afc956884b9cd58c306966efc260" + url: "https://pub.dev" + source: hosted + version: "5.7.0" + dio_web_adapter: + dependency: transitive + description: + name: dio_web_adapter + sha256: "33259a9276d6cea88774a0000cfae0d861003497755969c92faa223108620dc8" url: "https://pub.dev" source: hosted - version: "4.0.6" + version: "2.0.0" equatable: dependency: "direct main" description: @@ -213,26 +226,26 @@ packages: dependency: transitive description: name: ffi - sha256: a38574032c5f1dd06c4aee541789906c12ccaab8ba01446e800d9c5b79c4a978 + sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6" url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "2.1.3" file: dependency: transitive description: name: file - sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d" + sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4 url: "https://pub.dev" source: hosted - version: "6.1.4" + version: "7.0.1" fixnum: dependency: transitive description: name: fixnum - sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1" + sha256: b6dc7065e46c974bc7c5f143080a6764ec7a4be6da1285ececdc37be96de53be url: "https://pub.dev" source: hosted - version: "1.1.0" + version: "1.1.1" flutter: dependency: "direct main" description: flutter @@ -242,90 +255,98 @@ packages: dependency: "direct main" description: name: flutter_chat_types - sha256: cb9e72c6dee5f32e4b379b6b953dff95253c54242ee4e21ad81652b11902d5a8 + sha256: e285b588f6d19d907feb1f6d912deaf22e223656769c34093b64e1c59b094fb9 url: "https://pub.dev" source: hosted - version: "2.4.3" + version: "3.6.2" flutter_chat_ui: dependency: "direct main" description: name: flutter_chat_ui - sha256: "9c19396e59de978da092a935a04542ecf9746e3d75b9b7a038638e2a1982a5a1" + sha256: "168a4231464ad00a17ea5f0813f1b58393bdd4035683ea4dc37bbe26be62891e" url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.6.15" flutter_link_previewer: dependency: transitive description: name: flutter_link_previewer - sha256: "0adc16359ce8385d623ee4b2985e702d7766d52e351bf0fd6a12366f8e49a63f" + sha256: "007069e60f42419fb59872beb7a3cc3ea21e9f1bdff5d40239f376fa62ca9f20" url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "3.2.2" flutter_linkify: dependency: transitive description: name: flutter_linkify - sha256: c89fe74de985ec22f23d3538d2249add085a4f37ac1c29fd79e1a207efb81d63 + sha256: "74669e06a8f358fee4512b4320c0b80e51cffc496607931de68d28f099254073" url: "https://pub.dev" source: hosted - version: "5.0.2" + version: "6.0.0" flutter_lints: dependency: "direct dev" description: name: flutter_lints - sha256: aeb0b80a8b3709709c9cc496cdc027c5b3216796bc0af0ce1007eaf24464fd4c + sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04 url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "2.0.3" + flutter_parsed_text: + dependency: transitive + description: + name: flutter_parsed_text + sha256: "529cf5793b7acdf16ee0f97b158d0d4ba0bf06e7121ef180abe1a5b59e32c1e2" + url: "https://pub.dev" + source: hosted + version: "2.2.1" flutter_secure_storage: dependency: "direct main" description: name: flutter_secure_storage - sha256: "98352186ee7ad3639ccc77ad7924b773ff6883076ab952437d20f18a61f0a7c5" + sha256: "165164745e6afb5c0e3e3fcc72a012fb9e58496fb26ffb92cf22e16a821e85d0" url: "https://pub.dev" source: hosted - version: "8.0.0" + version: "9.2.2" flutter_secure_storage_linux: dependency: transitive description: name: flutter_secure_storage_linux - sha256: "0912ae29a572230ad52d8a4697e5518d7f0f429052fd51df7e5a7952c7efe2a3" + sha256: "4d91bfc23047422cbcd73ac684bc169859ee766482517c22172c86596bf1464b" url: "https://pub.dev" source: hosted - version: "1.1.3" + version: "1.2.1" flutter_secure_storage_macos: dependency: transitive description: name: flutter_secure_storage_macos - sha256: "083add01847fc1c80a07a08e1ed6927e9acd9618a35e330239d4422cd2a58c50" + sha256: "1693ab11121a5f925bbea0be725abfcfbbcf36c1e29e571f84a0c0f436147a81" url: "https://pub.dev" source: hosted - version: "3.0.0" + version: "3.1.2" flutter_secure_storage_platform_interface: dependency: transitive description: name: flutter_secure_storage_platform_interface - sha256: b3773190e385a3c8a382007893d678ae95462b3c2279e987b55d140d3b0cb81b + sha256: cf91ad32ce5adef6fba4d736a542baca9daf3beac4db2d04be350b87f69ac4a8 url: "https://pub.dev" source: hosted - version: "1.0.1" + version: "1.1.2" flutter_secure_storage_web: dependency: transitive description: name: flutter_secure_storage_web - sha256: "42938e70d4b872e856e678c423cc0e9065d7d294f45bc41fc1981a4eb4beaffe" + sha256: f4ebff989b4f07b2656fb16b47852c0aab9fed9b4ec1c70103368337bc1886a9 url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.2.1" flutter_secure_storage_windows: dependency: transitive description: name: flutter_secure_storage_windows - sha256: fc2910ec9b28d60598216c29ea763b3a96c401f0ce1d13cdf69ccb0e5c93c3ee + sha256: b20b07cb5ed4ed74fc567b78a72936203f587eba460af1df11281c9326cd3709 url: "https://pub.dev" source: hosted - version: "2.0.0" + version: "3.1.2" flutter_test: dependency: "direct dev" description: flutter @@ -336,38 +357,30 @@ packages: description: flutter source: sdk version: "0.0.0" - freezed_annotation: - dependency: transitive - description: - name: freezed_annotation - sha256: "70776c4541e5cacfe45bcaf00fe79137b8c61aa34fb5765a05ce6c57fd72c6e9" - url: "https://pub.dev" - source: hosted - version: "0.14.3" frontend_server_client: 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" glob: dependency: transitive description: name: glob - sha256: "4515b5b6ddb505ebdd242a5f2cc5d22d3d6a80013789debfbda7777f47ea308c" + sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" graphs: dependency: transitive description: name: graphs - sha256: f9e130f3259f52d26f0cfc0e964513796dafed572fa52e45d2f8d6ca14db39b2 + sha256: "741bbf84165310a68ff28fe9e727332eef1407342fca52759cb21ad8177bb8d0" url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.3.2" hive: dependency: "direct main" description: @@ -388,26 +401,26 @@ packages: dependency: "direct dev" description: name: hive_generator - sha256: "65998cc4d2cd9680a3d9709d893d2f6bb15e6c1f92626c3f1fa650b4b3281521" + sha256: "06cb8f58ace74de61f63500564931f9505368f45f98958bd7a6c35ba24159db4" url: "https://pub.dev" source: hosted - version: "2.0.0" + version: "2.0.1" html: dependency: transitive description: name: html - sha256: "79d498e6d6761925a34ee5ea8fa6dfef38607781d2fa91e37523474282af55cb" + sha256: "3a7812d5bcd2894edf53dfaf8cd640876cf6cef50a8f238745c8b8120ea74d3a" url: "https://pub.dev" source: hosted - version: "0.15.2" + version: "0.15.4" http: dependency: transitive description: name: http - sha256: "6aa2946395183537c8b880962d935877325d6a09a2867c3970c05c0fed6ac482" + sha256: b9c29a161230ee03d3ccf545097fccd9b87a5264228c5d348202e0f0c28f9010 url: "https://pub.dev" source: hosted - version: "0.13.5" + version: "1.2.2" http_multi_server: dependency: transitive description: @@ -428,10 +441,10 @@ packages: dependency: "direct main" description: name: intl - sha256: "910f85bce16fb5c6f614e117efa303e85a1731bb0081edf3604a2ae6e9a3cc91" + sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf url: "https://pub.dev" source: hosted - version: "0.17.0" + version: "0.19.0" io: dependency: transitive description: @@ -444,90 +457,122 @@ packages: dependency: transitive description: name: js - sha256: "5528c2f391ededb7775ec1daa69e65a2d61276f7552de2b5f7b8d34ee9fd4ab7" + sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 url: "https://pub.dev" source: hosted - version: "0.6.5" + version: "0.6.7" json_annotation: dependency: "direct main" description: name: json_annotation - sha256: c33da08e136c3df0190bd5bbe51ae1df4a7d96e7954d1d7249fea2968a72d317 + sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1" url: "https://pub.dev" source: hosted - version: "4.8.0" + version: "4.9.0" json_serializable: dependency: "direct dev" description: name: json_serializable - sha256: dadc08bd61f72559f938dd08ec20dbfec6c709bba83515085ea943d2078d187a + sha256: ea1432d167339ea9b5bb153f0571d0039607a873d6e04e0117af043f14a1fd4b url: "https://pub.dev" source: hosted - version: "6.6.1" + version: "6.8.0" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" + url: "https://pub.dev" + source: hosted + version: "10.0.5" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" + url: "https://pub.dev" + source: hosted + version: "3.0.5" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" + url: "https://pub.dev" + source: hosted + version: "3.0.1" linkify: dependency: transitive description: name: linkify - sha256: bdfbdafec6cdc9cd0ebb333a868cafc046714ad508e48be8095208c54691d959 + sha256: "4139ea77f4651ab9c315b577da2dd108d9aa0bd84b5d03d33323f1970c645832" url: "https://pub.dev" source: hosted - version: "4.1.0" + version: "5.0.0" lints: dependency: transitive description: name: lints - sha256: "5e4a9cd06d447758280a8ac2405101e0e2094d2a1dbdd3756aec3fe7775ba593" + sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452" url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "2.1.1" logging: dependency: transitive description: name: logging - sha256: "04094f2eb032cbb06c6f6e8d3607edcfcb0455e2bb6cbc010cb01171dcb64e6d" + sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61 url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.3.0" + macros: + dependency: transitive + description: + name: macros + sha256: "0acaed5d6b7eab89f63350bccd82119e6c602df0f391260d0e32b5e23db79536" + url: "https://pub.dev" + source: hosted + version: "0.1.2-main.4" matcher: dependency: transitive description: name: matcher - sha256: "16db949ceee371e9b99d22f88fa3a73c4e59fd0afed0bd25fc336eb76c198b72" + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb url: "https://pub.dev" source: hosted - version: "0.12.13" + version: "0.12.16+1" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.2.0" + version: "0.11.1" meta: dependency: transitive description: name: meta - sha256: "6c268b42ed578a53088d834796959e4a1814b5e9e164f147f580a386e5decf42" + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 url: "https://pub.dev" source: hosted - version: "1.8.0" + version: "1.15.0" mime: dependency: transitive description: name: mime - sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e + sha256: "41a20518f0cb1256669420fdba0cd90d21561e560ac240f26ef8322e45bb7ed6" url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "2.0.0" mockito: dependency: "direct dev" description: name: mockito - sha256: "2a8a17b82b1bde04d514e75d90d634a0ac23f6cb4991f6098009dd56836aeafe" + sha256: "6841eed20a7befac0ce07df8116c8b8233ed1f4486a7647c7fc5a02ae6163917" url: "https://pub.dev" source: hosted - version: "5.3.2" + version: "5.4.4" package_config: dependency: transitive description: @@ -540,82 +585,82 @@ packages: dependency: transitive description: name: path - sha256: db9d4f58c908a4ba5953fcee2ae317c94889433e5024c27ce74a37f94267945b + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" url: "https://pub.dev" source: hosted - version: "1.8.2" + version: "1.9.0" path_provider: dependency: "direct main" description: name: path_provider - sha256: "04890b994ee89bfa80bf3080bfec40d5a92c5c7a785ebb02c13084a099d2b6f9" + sha256: fec0d61223fba3154d87759e3cc27fe2c8dc498f6386c6d6fc80d1afdd1bf378 url: "https://pub.dev" source: hosted - version: "2.0.13" + version: "2.1.4" path_provider_android: dependency: transitive description: name: path_provider_android - sha256: "019f18c9c10ae370b08dce1f3e3b73bc9f58e7f087bb5e921f06529438ac0ae7" + sha256: c464428172cb986b758c6d1724c603097febb8fb855aa265aeecc9280c294d4a url: "https://pub.dev" source: hosted - version: "2.0.24" + version: "2.2.12" path_provider_foundation: dependency: transitive description: name: path_provider_foundation - sha256: "026b97a6c29da75181a37aae2eba9227f5fe13cb2838c6b975ce209328b8ab4e" + sha256: f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16 url: "https://pub.dev" source: hosted - version: "2.1.3" + version: "2.4.0" path_provider_linux: dependency: transitive description: name: path_provider_linux - sha256: "2ae08f2216225427e64ad224a24354221c2c7907e448e6e0e8b57b1eb9f10ad1" + sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279 url: "https://pub.dev" source: hosted - version: "2.1.10" + version: "2.2.1" path_provider_platform_interface: dependency: transitive description: name: path_provider_platform_interface - sha256: "57585299a729335f1298b43245842678cb9f43a6310351b18fb577d6e33165ec" + sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" url: "https://pub.dev" source: hosted - version: "2.0.6" + version: "2.1.2" path_provider_windows: dependency: transitive description: name: path_provider_windows - sha256: f53720498d5a543f9607db4b0e997c4b5438884de25b0f73098cc2671a51b130 + sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7 url: "https://pub.dev" source: hosted - version: "2.1.5" + version: "2.3.0" photo_view: dependency: transitive description: name: photo_view - sha256: aedb4371e5bf67546ecd92aed341df714f9de5db7c417ce7538a91c2b43d931a + sha256: "1fc3d970a91295fbd1364296575f854c9863f225505c28c46e0a03e48960c75e" url: "https://pub.dev" source: hosted - version: "0.12.0" + version: "0.15.0" platform: dependency: transitive description: name: platform - sha256: "4a451831508d7d6ca779f7ac6e212b4023dd5a7d08a27a63da33756410e32b76" + sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984" url: "https://pub.dev" source: hosted - version: "3.1.0" + version: "3.1.6" plugin_platform_interface: dependency: transitive description: name: plugin_platform_interface - sha256: "6a2128648c854906c53fa8e33986fc0247a1116122f9534dd20e3ab9e16a32bc" + sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" url: "https://pub.dev" source: hosted - version: "2.1.4" + version: "2.1.8" pool: dependency: transitive description: @@ -624,54 +669,54 @@ 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" pub_semver: dependency: transitive description: name: pub_semver - sha256: "307de764d305289ff24ad257ad5c5793ce56d04947599ad68b3baa124105fc17" + sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" url: "https://pub.dev" source: hosted - version: "2.1.3" + version: "2.1.4" pubspec_parse: dependency: transitive description: name: pubspec_parse - sha256: "0e01f805457ef610ccaf8d18067596afc34107a27149778b06b2083edbc140c1" + sha256: c799b721d79eb6ee6fa56f00c04b472dcd44a30d258fac2174a6ec57302678f8 url: "https://pub.dev" source: hosted - version: "1.1.0" + version: "1.3.0" riverpod: dependency: "direct main" description: name: riverpod - sha256: "13cbe0e17b659f38027986df967b3eaf7f42c519786352167fc3db1be44eae07" + sha256: "59062512288d3056b2321804332a13ffdd1bf16df70dcc8e506e411280a72959" + url: "https://pub.dev" + source: hosted + version: "2.6.1" + scroll_to_index: + dependency: transitive + description: + name: scroll_to_index + sha256: b707546e7500d9f070d63e5acf74fd437ec7eeeb68d3412ef7b0afada0b4f176 url: "https://pub.dev" source: hosted - version: "0.14.0+3" + version: "3.0.1" shelf: dependency: transitive description: name: shelf - sha256: c24a96135a2ccd62c64b69315a14adc5c3419df63b4d7c05832a346fdb73682c + sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 url: "https://pub.dev" source: hosted - version: "1.4.0" + version: "1.4.1" shelf_web_socket: dependency: transitive description: name: shelf_web_socket - sha256: a988c0e8d8ffbdb8a28aa7ec8e449c260f3deb808781fe1284d22c5bba7156e8 + sha256: "073c147238594ecd0d193f3456a5fe91c4b0abbcc68bf5cd95b36c4e194ac611" url: "https://pub.dev" source: hosted - version: "1.0.3" + version: "2.0.0" sky_engine: dependency: transitive description: flutter @@ -681,50 +726,58 @@ packages: dependency: transitive description: name: source_gen - sha256: c2bea18c95cfa0276a366270afaa2850b09b4a76db95d546f3d003dcc7011298 + sha256: "14658ba5f669685cd3d63701d01b31ea748310f7ab854e471962670abcf57832" url: "https://pub.dev" source: hosted - version: "1.2.7" + version: "1.5.0" source_helper: dependency: transitive description: name: source_helper - sha256: "3b67aade1d52416149c633ba1bb36df44d97c6b51830c2198e934e3fca87ca1f" + sha256: "6adebc0006c37dd63fe05bca0a929b99f06402fc95aa35bf36d67f5c06de01fd" url: "https://pub.dev" source: hosted - version: "1.3.3" + version: "1.3.4" source_span: dependency: transitive description: name: source_span - sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + sprintf: + dependency: transitive + description: + name: sprintf + sha256: "1fc9ffe69d4df602376b52949af107d8f5703b77cda567c4d7d86a0693120f23" url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "7.0.0" stack_trace: dependency: transitive description: name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.11.1" state_notifier: dependency: transitive description: name: state_notifier - sha256: "8fe42610f179b843b12371e40db58c9444f8757f8b69d181c97e50787caed289" + sha256: b8677376aa54f2d7c58280d5a007f9e8774f1968d1fb1c096adcb4792fba29bb url: "https://pub.dev" source: hosted - version: "0.7.2+1" + version: "1.0.0" stream_channel: dependency: "direct main" 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: @@ -745,10 +798,10 @@ packages: dependency: "direct main" description: name: synchronized - sha256: "33b31b6beb98100bf9add464a36a8dd03eb10c7a8cf15aeec535e9b054aaf04b" + sha256: "69fe30f3a8b04a0be0c15ae6490fc859a78ef4c43ae2dd5e8a623d45bfcf9225" url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "3.3.0+3" term_glyph: dependency: transitive description: @@ -761,98 +814,98 @@ packages: dependency: transitive description: name: test_api - sha256: ad540f65f92caa91bf21dfc8ffb8c589d6e4dc0c2267818b4cc2792857706206 + sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" url: "https://pub.dev" source: hosted - version: "0.4.16" + version: "0.7.2" timing: dependency: transitive description: name: timing - sha256: c386d07d7f5efc613479a7c4d9d64b03710b03cfaa7e8ad5f2bfb295a1f0dfad + sha256: "70a3b636575d4163c477e6de42f247a23b315ae20e86442bebe32d3cabf61c32" url: "https://pub.dev" source: hosted - version: "1.0.0" + version: "1.0.1" typed_data: dependency: transitive description: name: typed_data - sha256: "26f87ade979c47a150c9eaab93ccd2bebe70a27dc0b4b29517f2904f04eb11a5" + sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 url: "https://pub.dev" source: hosted - version: "1.3.1" + version: "1.4.0" url_launcher: dependency: "direct main" description: name: url_launcher - sha256: "75f2846facd11168d007529d6cd8fcb2b750186bea046af9711f10b907e1587e" + sha256: "9d06212b1362abc2f0f0d78e6f09f726608c74e3b9462e8368bb03314aa8d603" url: "https://pub.dev" source: hosted - version: "6.1.10" + version: "6.3.1" url_launcher_android: dependency: transitive description: name: url_launcher_android - sha256: "845530e5e05db5500c1a4c1446785d60cbd8f9bd45e21e7dd643a3273bb4bbd1" + sha256: "8fc3bae0b68c02c47c5c86fa8bfa74471d42687b0eded01b78de87872db745e2" url: "https://pub.dev" source: hosted - version: "6.0.25" + version: "6.3.12" url_launcher_ios: dependency: transitive description: name: url_launcher_ios - sha256: "7ab1e5b646623d6a2537aa59d5d039f90eebef75a7c25e105f6f75de1f7750c3" + sha256: e43b677296fadce447e987a2f519dcf5f6d1e527dc35d01ffab4fff5b8a7063e url: "https://pub.dev" source: hosted - version: "6.1.2" + version: "6.3.1" url_launcher_linux: dependency: transitive description: name: url_launcher_linux - sha256: "206fb8334a700ef7754d6a9ed119e7349bc830448098f21a69bf1b4ed038cabc" + sha256: e2b9622b4007f97f504cd64c0128309dfb978ae66adbe944125ed9e1750f06af url: "https://pub.dev" source: hosted - version: "3.0.4" + version: "3.2.0" url_launcher_macos: dependency: transitive description: name: url_launcher_macos - sha256: "0ef2b4f97942a16523e51256b799e9aa1843da6c60c55eefbfa9dbc2dcb8331a" + sha256: "769549c999acdb42b8bcfa7c43d72bf79a382ca7441ab18a808e101149daf672" url: "https://pub.dev" source: hosted - version: "3.0.4" + version: "3.2.1" url_launcher_platform_interface: dependency: transitive description: name: url_launcher_platform_interface - sha256: "6c9ca697a5ae218ce56cece69d46128169a58aa8653c1b01d26fcd4aad8c4370" + sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029" url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.3.2" url_launcher_web: dependency: transitive description: name: url_launcher_web - sha256: "81fe91b6c4f84f222d186a9d23c73157dc4c8e1c71489c4d08be1ad3b228f1aa" + sha256: "772638d3b34c779ede05ba3d38af34657a05ac55b06279ea6edd409e323dca8e" url: "https://pub.dev" source: hosted - version: "2.0.16" + version: "2.3.3" url_launcher_windows: dependency: transitive description: name: url_launcher_windows - sha256: a83ba3607a507758669cfafb03f9de09bf6e6280c14d9b9cb18f013e406dcacd + sha256: "44cf3aabcedde30f2dba119a9dea3b0f2672fbe6fa96e85536251d678216b3c4" url: "https://pub.dev" source: hosted - version: "3.0.5" + version: "3.1.3" uuid: dependency: "direct main" description: name: uuid - sha256: "648e103079f7c64a36dc7d39369cabb358d377078a051d6ae2ad3aa539519313" + sha256: a5be9ef6618a7ac1e964353ef476418026db906c4facdedaa299b7a2e71690ff url: "https://pub.dev" source: hosted - version: "3.0.7" + version: "4.5.1" vector_math: dependency: transitive description: @@ -861,78 +914,110 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" + visibility_detector: + dependency: transitive + description: + name: visibility_detector + sha256: dd5cc11e13494f432d15939c3aa8ae76844c42b723398643ce9addb88a5ed420 + url: "https://pub.dev" + source: hosted + version: "0.4.0+2" + vm_service: + dependency: transitive + description: + name: vm_service + sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" + url: "https://pub.dev" + source: hosted + version: "14.2.5" watcher: dependency: transitive description: name: watcher - sha256: "6a7f46926b01ce81bfc339da6a7f20afbe7733eff9846f6d6a5466aa4c6667c0" + sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + web: + dependency: transitive + description: + name: web + sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb url: "https://pub.dev" source: hosted - version: "1.0.2" + version: "1.1.0" + web_socket: + dependency: transitive + description: + name: web_socket + sha256: "3c12d96c0c9a4eec095246debcea7b86c0324f22df69893d538fcc6f1b8cce83" + url: "https://pub.dev" + source: hosted + version: "0.1.6" web_socket_channel: dependency: "direct main" description: name: web_socket_channel - sha256: ca49c0bc209c687b887f30527fb6a9d80040b072cc2990f34b9bec3e7663101b + sha256: "9f187088ed104edd8662ca07af4b124465893caf063ba29758f97af57e61da8f" url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "3.0.1" webview_flutter: dependency: "direct main" description: name: webview_flutter - sha256: b6cd42db3ced5411f3d01599906156885b18e4188f7065a8a351eb84bee347e0 + sha256: "889a0a678e7c793c308c68739996227c9661590605e70b1f6cf6b9a6634f7aec" url: "https://pub.dev" source: hosted - version: "4.0.6" + version: "4.10.0" webview_flutter_android: dependency: transitive description: name: webview_flutter_android - sha256: c849dcb6bf7367f696869006fb9575c15bdc6a1d624ae13f12de5a147a740b12 + sha256: "74693a212d990b32e0b7055d27db973a18abf31c53942063948cdfaaef9787ba" url: "https://pub.dev" source: hosted - version: "3.4.2" + version: "4.0.0" webview_flutter_platform_interface: dependency: transitive description: name: webview_flutter_platform_interface - sha256: "1939c39e2150fb4d30fd3cc59a891a49fed9935db53007df633ed83581b6117b" + sha256: d937581d6e558908d7ae3dc1989c4f87b786891ab47bb9df7de548a151779d8d url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.10.0" webview_flutter_wkwebview: dependency: transitive description: name: webview_flutter_wkwebview - sha256: ab12479f7a0cf112b9420c36aaf206a1ca47cd60cd42de74a4be2e97a697587b + sha256: d4034901d96357beb1b6717ebf7d583c88e40cfc6eb85fe76dd1bf0979a9f251 url: "https://pub.dev" source: hosted - version: "3.2.1" + version: "3.16.0" win32: - dependency: transitive + dependency: "direct main" description: name: win32 - sha256: c9ebe7ee4ab0c2194e65d3a07d8c54c5d00bb001b76081c4a04cdb8448b59e46 + sha256: e1d0cc62e65dc2561f5071fcbccecf58ff20c344f8f3dc7d4922df372a11df1f url: "https://pub.dev" source: hosted - version: "3.1.3" + version: "5.7.1" xdg_directories: dependency: transitive description: name: xdg_directories - sha256: ee1505df1426458f7f60aac270645098d318a8b4766d85fde75f76f2e21807d1 + sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15" url: "https://pub.dev" source: hosted - version: "1.0.0" + version: "1.1.0" yaml: dependency: transitive description: name: yaml - sha256: "23812a9b125b48d4007117254bca50abb6c712352927eece9e155207b1db2370" + sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" url: "https://pub.dev" source: hosted - version: "3.1.1" + version: "3.1.2" sdks: - dart: ">=2.19.0 <3.0.0" - flutter: ">=3.3.0" + dart: ">=3.5.0 <4.0.0" + flutter: ">=3.24.0" diff --git a/pubspec.yaml b/pubspec.yaml index a40f874..2a2c720 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,38 +4,38 @@ version: 0.0.9 homepage: https://github.com/chatwoot/chatwoot-flutter-sdk environment: - sdk: ">=2.12.0 <3.0.0" - flutter: ">=1.17.0" + sdk: ">=3.0.0 <4.0.0" dependencies: flutter: sdk: flutter - flutter_chat_ui: ^1.1.9 + flutter_chat_ui: ^1.6.15 hive: ^2.2.3 hive_flutter: ^1.1.0 - uuid: ^3.0.4 - web_socket_channel: ^2.1.0 - json_annotation: ^4.0.1 - dio: ^4.0.0 - equatable: ^2.0.3 - riverpod: ^0.14.0+3 - synchronized: ^3.0.0 - intl: ^0.17.0 - flutter_chat_types: ^2.4.0 - stream_channel: ^2.1.0 - async: ^2.5.0 - webview_flutter: ^4.0.6 - flutter_secure_storage: ^8.0.0 - url_launcher: ^6.1.10 - path_provider: ^2.0.13 - + uuid: ^4.5.1 + web_socket_channel: ^3.0.1 + json_annotation: ^4.9.0 + dio: ^5.7.0 + equatable: ^2.0.5 + riverpod: ^2.6.1 + synchronized: ^3.3.0+3 + intl: ^0.19.0 + flutter_chat_types: ^3.6.2 + stream_channel: ^2.1.2 + async: ^2.11.0 + webview_flutter: ^4.10.0 + flutter_secure_storage: ^9.2.2 + url_launcher: ^6.3.1 + path_provider: ^2.1.4 + win32: ^5.7.1 + dev_dependencies: flutter_test: sdk: flutter - mockito: ^5.3.2 - json_serializable: ^6.6.1 - hive_generator: ^2.0.0 - build_runner: ^2.3.3 + mockito: ^5.4.4 + json_serializable: ^6.8.0 + hive_generator: ^2.0.1 + build_runner: ^2.4.13 flutter_lints: ^2.0.1 # For information on the generic Dart part of this file, see the diff --git a/test/chatwoot_client_test.dart b/test/chatwoot_client_test.dart index 9d141a4..ccfa98d 100644 --- a/test/chatwoot_client_test.dart +++ b/test/chatwoot_client_test.dart @@ -20,8 +20,8 @@ void main() { final testInboxIdentifier = "testIdentifier"; final testBaseUrl = "https://testbaseurl.com"; late ProviderContainer mockProviderContainer; - final mockLocalStorage = MockLocalStorage(); - final mockRepository = MockChatwootRepository(); + final MockLocalStorage mockLocalStorage = MockLocalStorage(); + final MockChatwootRepository mockRepository = MockChatwootRepository(); final testUser = ChatwootUser( identifier: "identifier", @@ -41,9 +41,9 @@ void main() { mockProviderContainer = ProviderContainer(); mockProviderContainer.updateOverrides([ localStorageProvider - .overrideWithProvider((ref, param) => mockLocalStorage), + .overrideWithProvider(( param) => Provider((ref) => mockLocalStorage,)), chatwootRepositoryProvider - .overrideWithProvider((ref, param) => mockRepository) + .overrideWithProvider(( param) => Provider((ref) => mockRepository,)) ]); ChatwootClient.providerContainerMap.update( testClientInstanceKey, (_) => mockProviderContainer, diff --git a/test/chatwoot_client_test.mocks.dart b/test/chatwoot_client_test.mocks.dart index b66c3de..9284703 100644 --- a/test/chatwoot_client_test.mocks.dart +++ b/test/chatwoot_client_test.mocks.dart @@ -1,7 +1,8 @@ -// Mocks generated by Mockito 5.0.15 from annotations +// Mocks generated by Mockito 5.4.4 from annotations // in chatwoot_sdk/test/chatwoot_client_test.dart. // Do not manually edit this file. +// ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i6; import 'package:chatwoot_sdk/chatwoot_callbacks.dart' as _i4; @@ -16,21 +17,50 @@ import 'package:chatwoot_sdk/data/remote/service/chatwoot_client_service.dart' as _i2; import 'package:mockito/mockito.dart' as _i1; +// ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_setters_without_getters // ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class -class _FakeChatwootClientService_0 extends _i1.Fake - implements _i2.ChatwootClientService {} +class _FakeChatwootClientService_0 extends _i1.SmartFake + implements _i2.ChatwootClientService { + _FakeChatwootClientService_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeLocalStorage_1 extends _i1.Fake implements _i3.LocalStorage {} +class _FakeLocalStorage_1 extends _i1.SmartFake implements _i3.LocalStorage { + _FakeLocalStorage_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeChatwootCallbacks_2 extends _i1.Fake - implements _i4.ChatwootCallbacks {} +class _FakeChatwootCallbacks_2 extends _i1.SmartFake + implements _i4.ChatwootCallbacks { + _FakeChatwootCallbacks_2( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} /// A class which mocks [ChatwootRepository]. /// @@ -42,56 +72,115 @@ class MockChatwootRepository extends _i1.Mock } @override - _i2.ChatwootClientService get clientService => - (super.noSuchMethod(Invocation.getter(#clientService), - returnValue: _FakeChatwootClientService_0()) - as _i2.ChatwootClientService); + _i2.ChatwootClientService get clientService => (super.noSuchMethod( + Invocation.getter(#clientService), + returnValue: _FakeChatwootClientService_0( + this, + Invocation.getter(#clientService), + ), + ) as _i2.ChatwootClientService); + @override - _i3.LocalStorage get localStorage => - (super.noSuchMethod(Invocation.getter(#localStorage), - returnValue: _FakeLocalStorage_1()) as _i3.LocalStorage); + _i3.LocalStorage get localStorage => (super.noSuchMethod( + Invocation.getter(#localStorage), + returnValue: _FakeLocalStorage_1( + this, + Invocation.getter(#localStorage), + ), + ) as _i3.LocalStorage); + @override - _i4.ChatwootCallbacks get callbacks => - (super.noSuchMethod(Invocation.getter(#callbacks), - returnValue: _FakeChatwootCallbacks_2()) as _i4.ChatwootCallbacks); + _i4.ChatwootCallbacks get callbacks => (super.noSuchMethod( + Invocation.getter(#callbacks), + returnValue: _FakeChatwootCallbacks_2( + this, + Invocation.getter(#callbacks), + ), + ) as _i4.ChatwootCallbacks); + @override - set callbacks(_i4.ChatwootCallbacks? _callbacks) => - super.noSuchMethod(Invocation.setter(#callbacks, _callbacks), - returnValueForMissingStub: null); + set callbacks(_i4.ChatwootCallbacks? _callbacks) => super.noSuchMethod( + Invocation.setter( + #callbacks, + _callbacks, + ), + returnValueForMissingStub: null, + ); + @override - _i6.Future initialize(_i7.ChatwootUser? user) => - (super.noSuchMethod(Invocation.method(#initialize, [user]), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i6.Future); + _i6.Future initialize(_i7.ChatwootUser? user) => (super.noSuchMethod( + Invocation.method( + #initialize, + [user], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + @override - void getPersistedMessages() => - super.noSuchMethod(Invocation.method(#getPersistedMessages, []), - returnValueForMissingStub: null); + void getPersistedMessages() => super.noSuchMethod( + Invocation.method( + #getPersistedMessages, + [], + ), + returnValueForMissingStub: null, + ); + @override - _i6.Future getMessages() => - (super.noSuchMethod(Invocation.method(#getMessages, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i6.Future); + _i6.Future getMessages() => (super.noSuchMethod( + Invocation.method( + #getMessages, + [], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + @override - void listenForEvents() => - super.noSuchMethod(Invocation.method(#listenForEvents, []), - returnValueForMissingStub: null); + void listenForEvents() => super.noSuchMethod( + Invocation.method( + #listenForEvents, + [], + ), + returnValueForMissingStub: null, + ); + @override _i6.Future sendMessage(_i8.ChatwootNewMessageRequest? request) => - (super.noSuchMethod(Invocation.method(#sendMessage, [request]), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i6.Future); - @override - void sendAction(_i9.ChatwootActionType? action) => - super.noSuchMethod(Invocation.method(#sendAction, [action]), - returnValueForMissingStub: null); + (super.noSuchMethod( + Invocation.method( + #sendMessage, + [request], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + @override - _i6.Future clear() => (super.noSuchMethod(Invocation.method(#clear, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i6.Future); + void sendAction(_i9.ChatwootActionType? action) => super.noSuchMethod( + Invocation.method( + #sendAction, + [action], + ), + returnValueForMissingStub: null, + ); + @override - void dispose() => super.noSuchMethod(Invocation.method(#dispose, []), - returnValueForMissingStub: null); + _i6.Future clear() => (super.noSuchMethod( + Invocation.method( + #clear, + [], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + @override - String toString() => super.toString(); + void dispose() => super.noSuchMethod( + Invocation.method( + #dispose, + [], + ), + returnValueForMissingStub: null, + ); } diff --git a/test/data/chatwoot_repository_test.mocks.dart b/test/data/chatwoot_repository_test.mocks.dart index 8beac8d..6e2973c 100644 --- a/test/data/chatwoot_repository_test.mocks.dart +++ b/test/data/chatwoot_repository_test.mocks.dart @@ -1,7 +1,8 @@ -// Mocks generated by Mockito 5.0.15 from annotations +// Mocks generated by Mockito 5.4.4 from annotations // in chatwoot_sdk/test/data/chatwoot_repository_test.dart. // Do not manually edit this file. +// ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i11; import 'package:async/async.dart' as _i18; @@ -28,32 +29,104 @@ import 'package:mockito/mockito.dart' as _i1; import 'package:stream_channel/stream_channel.dart' as _i9; import 'package:web_socket_channel/web_socket_channel.dart' as _i8; +// ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_setters_without_getters // ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class -class _FakeChatwootUserDao_0 extends _i1.Fake implements _i2.ChatwootUserDao {} +class _FakeChatwootUserDao_0 extends _i1.SmartFake + implements _i2.ChatwootUserDao { + _FakeChatwootUserDao_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeChatwootConversationDao_1 extends _i1.Fake - implements _i3.ChatwootConversationDao {} +class _FakeChatwootConversationDao_1 extends _i1.SmartFake + implements _i3.ChatwootConversationDao { + _FakeChatwootConversationDao_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeChatwootContactDao_2 extends _i1.Fake - implements _i4.ChatwootContactDao {} +class _FakeChatwootContactDao_2 extends _i1.SmartFake + implements _i4.ChatwootContactDao { + _FakeChatwootContactDao_2( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeChatwootMessagesDao_3 extends _i1.Fake - implements _i5.ChatwootMessagesDao {} +class _FakeChatwootMessagesDao_3 extends _i1.SmartFake + implements _i5.ChatwootMessagesDao { + _FakeChatwootMessagesDao_3( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeChatwootContact_4 extends _i1.Fake implements _i6.ChatwootContact {} +class _FakeChatwootContact_4 extends _i1.SmartFake + implements _i6.ChatwootContact { + _FakeChatwootContact_4( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeChatwootMessage_5 extends _i1.Fake implements _i7.ChatwootMessage {} +class _FakeChatwootMessage_5 extends _i1.SmartFake + implements _i7.ChatwootMessage { + _FakeChatwootMessage_5( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeWebSocketSink_6 extends _i1.Fake implements _i8.WebSocketSink {} +class _FakeWebSocketSink_6 extends _i1.SmartFake implements _i8.WebSocketSink { + _FakeWebSocketSink_6( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeStreamChannel_7 extends _i1.Fake implements _i9.StreamChannel { +class _FakeStreamChannel_7 extends _i1.SmartFake + implements _i9.StreamChannel { + _FakeStreamChannel_7( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } /// A class which mocks [LocalStorage]. @@ -65,53 +138,99 @@ class MockLocalStorage extends _i1.Mock implements _i10.LocalStorage { } @override - _i2.ChatwootUserDao get userDao => - (super.noSuchMethod(Invocation.getter(#userDao), - returnValue: _FakeChatwootUserDao_0()) as _i2.ChatwootUserDao); + _i2.ChatwootUserDao get userDao => (super.noSuchMethod( + Invocation.getter(#userDao), + returnValue: _FakeChatwootUserDao_0( + this, + Invocation.getter(#userDao), + ), + ) as _i2.ChatwootUserDao); + @override - set userDao(_i2.ChatwootUserDao? _userDao) => - super.noSuchMethod(Invocation.setter(#userDao, _userDao), - returnValueForMissingStub: null); + set userDao(_i2.ChatwootUserDao? _userDao) => super.noSuchMethod( + Invocation.setter( + #userDao, + _userDao, + ), + returnValueForMissingStub: null, + ); + @override - _i3.ChatwootConversationDao get conversationDao => - (super.noSuchMethod(Invocation.getter(#conversationDao), - returnValue: _FakeChatwootConversationDao_1()) - as _i3.ChatwootConversationDao); + _i3.ChatwootConversationDao get conversationDao => (super.noSuchMethod( + Invocation.getter(#conversationDao), + returnValue: _FakeChatwootConversationDao_1( + this, + Invocation.getter(#conversationDao), + ), + ) as _i3.ChatwootConversationDao); + @override set conversationDao(_i3.ChatwootConversationDao? _conversationDao) => - super.noSuchMethod(Invocation.setter(#conversationDao, _conversationDao), - returnValueForMissingStub: null); + super.noSuchMethod( + Invocation.setter( + #conversationDao, + _conversationDao, + ), + returnValueForMissingStub: null, + ); + @override - _i4.ChatwootContactDao get contactDao => - (super.noSuchMethod(Invocation.getter(#contactDao), - returnValue: _FakeChatwootContactDao_2()) as _i4.ChatwootContactDao); + _i4.ChatwootContactDao get contactDao => (super.noSuchMethod( + Invocation.getter(#contactDao), + returnValue: _FakeChatwootContactDao_2( + this, + Invocation.getter(#contactDao), + ), + ) as _i4.ChatwootContactDao); + @override - set contactDao(_i4.ChatwootContactDao? _contactDao) => - super.noSuchMethod(Invocation.setter(#contactDao, _contactDao), - returnValueForMissingStub: null); + set contactDao(_i4.ChatwootContactDao? _contactDao) => super.noSuchMethod( + Invocation.setter( + #contactDao, + _contactDao, + ), + returnValueForMissingStub: null, + ); + @override _i5.ChatwootMessagesDao get messagesDao => (super.noSuchMethod( - Invocation.getter(#messagesDao), - returnValue: _FakeChatwootMessagesDao_3()) as _i5.ChatwootMessagesDao); + Invocation.getter(#messagesDao), + returnValue: _FakeChatwootMessagesDao_3( + this, + Invocation.getter(#messagesDao), + ), + ) as _i5.ChatwootMessagesDao); + @override - set messagesDao(_i5.ChatwootMessagesDao? _messagesDao) => - super.noSuchMethod(Invocation.setter(#messagesDao, _messagesDao), - returnValueForMissingStub: null); + set messagesDao(_i5.ChatwootMessagesDao? _messagesDao) => super.noSuchMethod( + Invocation.setter( + #messagesDao, + _messagesDao, + ), + returnValueForMissingStub: null, + ); + @override _i11.Future clear({bool? clearChatwootUserStorage = true}) => (super.noSuchMethod( - Invocation.method(#clear, [], - {#clearChatwootUserStorage: clearChatwootUserStorage}), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) - as _i11.Future); + Invocation.method( + #clear, + [], + {#clearChatwootUserStorage: clearChatwootUserStorage}, + ), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) as _i11.Future); + @override _i11.Future clearAll() => (super.noSuchMethod( - Invocation.method(#clearAll, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i11.Future); - @override - String toString() => super.toString(); + Invocation.method( + #clearAll, + [], + ), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) as _i11.Future); } /// A class which mocks [ChatwootClientService]. @@ -124,63 +243,142 @@ class MockChatwootClientService extends _i1.Mock } @override - set connection(_i8.WebSocketChannel? _connection) => - super.noSuchMethod(Invocation.setter(#connection, _connection), - returnValueForMissingStub: null); + set connection(_i8.WebSocketChannel? _connection) => super.noSuchMethod( + Invocation.setter( + #connection, + _connection, + ), + returnValueForMissingStub: null, + ); + @override _i11.Future<_i6.ChatwootContact> updateContact(dynamic update) => - (super.noSuchMethod(Invocation.method(#updateContact, [update]), - returnValue: - Future<_i6.ChatwootContact>.value(_FakeChatwootContact_4())) - as _i11.Future<_i6.ChatwootContact>); + (super.noSuchMethod( + Invocation.method( + #updateContact, + [update], + ), + returnValue: + _i11.Future<_i6.ChatwootContact>.value(_FakeChatwootContact_4( + this, + Invocation.method( + #updateContact, + [update], + ), + )), + ) as _i11.Future<_i6.ChatwootContact>); + @override - _i11.Future<_i6.ChatwootContact> getContact() => - (super.noSuchMethod(Invocation.method(#getContact, []), - returnValue: - Future<_i6.ChatwootContact>.value(_FakeChatwootContact_4())) - as _i11.Future<_i6.ChatwootContact>); + _i11.Future<_i6.ChatwootContact> getContact() => (super.noSuchMethod( + Invocation.method( + #getContact, + [], + ), + returnValue: + _i11.Future<_i6.ChatwootContact>.value(_FakeChatwootContact_4( + this, + Invocation.method( + #getContact, + [], + ), + )), + ) as _i11.Future<_i6.ChatwootContact>); + @override _i11.Future> getConversations() => - (super.noSuchMethod(Invocation.method(#getConversations, []), - returnValue: Future>.value( - <_i13.ChatwootConversation>[])) - as _i11.Future>); + (super.noSuchMethod( + Invocation.method( + #getConversations, + [], + ), + returnValue: _i11.Future>.value( + <_i13.ChatwootConversation>[]), + ) as _i11.Future>); + @override _i11.Future<_i7.ChatwootMessage> createMessage( _i14.ChatwootNewMessageRequest? request) => - (super.noSuchMethod(Invocation.method(#createMessage, [request]), - returnValue: - Future<_i7.ChatwootMessage>.value(_FakeChatwootMessage_5())) - as _i11.Future<_i7.ChatwootMessage>); + (super.noSuchMethod( + Invocation.method( + #createMessage, + [request], + ), + returnValue: + _i11.Future<_i7.ChatwootMessage>.value(_FakeChatwootMessage_5( + this, + Invocation.method( + #createMessage, + [request], + ), + )), + ) as _i11.Future<_i7.ChatwootMessage>); + @override _i11.Future<_i7.ChatwootMessage> updateMessage( - String? messageIdentifier, dynamic update) => + String? messageIdentifier, + dynamic update, + ) => (super.noSuchMethod( - Invocation.method(#updateMessage, [messageIdentifier, update]), - returnValue: - Future<_i7.ChatwootMessage>.value(_FakeChatwootMessage_5())) - as _i11.Future<_i7.ChatwootMessage>); + Invocation.method( + #updateMessage, + [ + messageIdentifier, + update, + ], + ), + returnValue: + _i11.Future<_i7.ChatwootMessage>.value(_FakeChatwootMessage_5( + this, + Invocation.method( + #updateMessage, + [ + messageIdentifier, + update, + ], + ), + )), + ) as _i11.Future<_i7.ChatwootMessage>); + @override _i11.Future> getAllMessages() => - (super.noSuchMethod(Invocation.method(#getAllMessages, []), - returnValue: Future>.value( - <_i7.ChatwootMessage>[])) - as _i11.Future>); + (super.noSuchMethod( + Invocation.method( + #getAllMessages, + [], + ), + returnValue: _i11.Future>.value( + <_i7.ChatwootMessage>[]), + ) as _i11.Future>); + @override - void startWebSocketConnection(String? contactPubsubToken, - {_i8.WebSocketChannel Function(Uri)? onStartConnection}) => + void startWebSocketConnection( + String? contactPubsubToken, { + _i8.WebSocketChannel Function(Uri)? onStartConnection, + }) => super.noSuchMethod( - Invocation.method(#startWebSocketConnection, [contactPubsubToken], - {#onStartConnection: onStartConnection}), - returnValueForMissingStub: null); + Invocation.method( + #startWebSocketConnection, + [contactPubsubToken], + {#onStartConnection: onStartConnection}, + ), + returnValueForMissingStub: null, + ); + @override void sendAction( - String? contactPubsubToken, _i15.ChatwootActionType? action) => + String? contactPubsubToken, + _i15.ChatwootActionType? action, + ) => super.noSuchMethod( - Invocation.method(#sendAction, [contactPubsubToken, action]), - returnValueForMissingStub: null); - @override - String toString() => super.toString(); + Invocation.method( + #sendAction, + [ + contactPubsubToken, + action, + ], + ), + returnValueForMissingStub: null, + ); } /// A class which mocks [ChatwootCallbacks]. @@ -192,89 +390,166 @@ class MockChatwootCallbacks extends _i1.Mock implements _i16.ChatwootCallbacks { } @override - set onWelcome(void Function()? _onWelcome) => - super.noSuchMethod(Invocation.setter(#onWelcome, _onWelcome), - returnValueForMissingStub: null); + set onWelcome(void Function()? _onWelcome) => super.noSuchMethod( + Invocation.setter( + #onWelcome, + _onWelcome, + ), + returnValueForMissingStub: null, + ); + @override - set onPing(void Function()? _onPing) => - super.noSuchMethod(Invocation.setter(#onPing, _onPing), - returnValueForMissingStub: null); + set onPing(void Function()? _onPing) => super.noSuchMethod( + Invocation.setter( + #onPing, + _onPing, + ), + returnValueForMissingStub: null, + ); + @override set onConfirmedSubscription(void Function()? _onConfirmedSubscription) => super.noSuchMethod( - Invocation.setter(#onConfirmedSubscription, _onConfirmedSubscription), - returnValueForMissingStub: null); + Invocation.setter( + #onConfirmedSubscription, + _onConfirmedSubscription, + ), + returnValueForMissingStub: null, + ); + @override set onConversationStartedTyping( void Function()? _onConversationStartedTyping) => super.noSuchMethod( - Invocation.setter( - #onConversationStartedTyping, _onConversationStartedTyping), - returnValueForMissingStub: null); + Invocation.setter( + #onConversationStartedTyping, + _onConversationStartedTyping, + ), + returnValueForMissingStub: null, + ); + @override set onConversationIsOnline(void Function()? _onConversationIsOnline) => super.noSuchMethod( - Invocation.setter(#onConversationIsOnline, _onConversationIsOnline), - returnValueForMissingStub: null); + Invocation.setter( + #onConversationIsOnline, + _onConversationIsOnline, + ), + returnValueForMissingStub: null, + ); + @override set onConversationIsOffline(void Function()? _onConversationIsOffline) => super.noSuchMethod( - Invocation.setter(#onConversationIsOffline, _onConversationIsOffline), - returnValueForMissingStub: null); + Invocation.setter( + #onConversationIsOffline, + _onConversationIsOffline, + ), + returnValueForMissingStub: null, + ); + @override set onConversationStoppedTyping( void Function()? _onConversationStoppedTyping) => super.noSuchMethod( - Invocation.setter( - #onConversationStoppedTyping, _onConversationStoppedTyping), - returnValueForMissingStub: null); + Invocation.setter( + #onConversationStoppedTyping, + _onConversationStoppedTyping, + ), + returnValueForMissingStub: null, + ); + @override set onMessageReceived( void Function(_i7.ChatwootMessage)? _onMessageReceived) => super.noSuchMethod( - Invocation.setter(#onMessageReceived, _onMessageReceived), - returnValueForMissingStub: null); + Invocation.setter( + #onMessageReceived, + _onMessageReceived, + ), + returnValueForMissingStub: null, + ); + @override set onMessageUpdated(void Function(_i7.ChatwootMessage)? _onMessageUpdated) => super.noSuchMethod( - Invocation.setter(#onMessageUpdated, _onMessageUpdated), - returnValueForMissingStub: null); + Invocation.setter( + #onMessageUpdated, + _onMessageUpdated, + ), + returnValueForMissingStub: null, + ); + @override set onMessageSent( - void Function(_i7.ChatwootMessage, String)? _onMessageSent) => - super.noSuchMethod(Invocation.setter(#onMessageSent, _onMessageSent), - returnValueForMissingStub: null); + void Function( + _i7.ChatwootMessage, + String, + )? _onMessageSent) => + super.noSuchMethod( + Invocation.setter( + #onMessageSent, + _onMessageSent, + ), + returnValueForMissingStub: null, + ); + @override set onMessageDelivered( - void Function(_i7.ChatwootMessage, String)? _onMessageDelivered) => + void Function( + _i7.ChatwootMessage, + String, + )? _onMessageDelivered) => super.noSuchMethod( - Invocation.setter(#onMessageDelivered, _onMessageDelivered), - returnValueForMissingStub: null); + Invocation.setter( + #onMessageDelivered, + _onMessageDelivered, + ), + returnValueForMissingStub: null, + ); + @override set onPersistedMessagesRetrieved( void Function(List<_i7.ChatwootMessage>)? _onPersistedMessagesRetrieved) => super.noSuchMethod( - Invocation.setter( - #onPersistedMessagesRetrieved, _onPersistedMessagesRetrieved), - returnValueForMissingStub: null); + Invocation.setter( + #onPersistedMessagesRetrieved, + _onPersistedMessagesRetrieved, + ), + returnValueForMissingStub: null, + ); + @override set onMessagesRetrieved( void Function(List<_i7.ChatwootMessage>)? _onMessagesRetrieved) => super.noSuchMethod( - Invocation.setter(#onMessagesRetrieved, _onMessagesRetrieved), - returnValueForMissingStub: null); + Invocation.setter( + #onMessagesRetrieved, + _onMessagesRetrieved, + ), + returnValueForMissingStub: null, + ); + @override set onConversationResolved(void Function()? _onConversationResolved) => super.noSuchMethod( - Invocation.setter(#onConversationResolved, _onConversationResolved), - returnValueForMissingStub: null); + Invocation.setter( + #onConversationResolved, + _onConversationResolved, + ), + returnValueForMissingStub: null, + ); + @override set onError(void Function(_i17.ChatwootClientException)? _onError) => - super.noSuchMethod(Invocation.setter(#onError, _onError), - returnValueForMissingStub: null); - @override - String toString() => super.toString(); + super.noSuchMethod( + Invocation.setter( + #onError, + _onError, + ), + returnValueForMissingStub: null, + ); } /// A class which mocks [WebSocketChannel]. @@ -286,50 +561,133 @@ class MockWebSocketChannel extends _i1.Mock implements _i8.WebSocketChannel { } @override - _i11.Stream get stream => - (super.noSuchMethod(Invocation.getter(#stream), - returnValue: Stream.empty()) as _i11.Stream); + _i11.Future get ready => (super.noSuchMethod( + Invocation.getter(#ready), + returnValue: _i11.Future.value(), + ) as _i11.Future); + + @override + _i8.WebSocketSink get sink => (super.noSuchMethod( + Invocation.getter(#sink), + returnValue: _FakeWebSocketSink_6( + this, + Invocation.getter(#sink), + ), + ) as _i8.WebSocketSink); + @override - _i8.WebSocketSink get sink => (super.noSuchMethod(Invocation.getter(#sink), - returnValue: _FakeWebSocketSink_6()) as _i8.WebSocketSink); + _i11.Stream get stream => (super.noSuchMethod( + Invocation.getter(#stream), + returnValue: _i11.Stream.empty(), + ) as _i11.Stream); + @override - void pipe(_i9.StreamChannel? other) => - super.noSuchMethod(Invocation.method(#pipe, [other]), - returnValueForMissingStub: null); + void pipe(_i9.StreamChannel? other) => super.noSuchMethod( + Invocation.method( + #pipe, + [other], + ), + returnValueForMissingStub: null, + ); + @override _i9.StreamChannel transform( _i9.StreamChannelTransformer? transformer) => - (super.noSuchMethod(Invocation.method(#transform, [transformer]), - returnValue: _FakeStreamChannel_7()) as _i9.StreamChannel); + (super.noSuchMethod( + Invocation.method( + #transform, + [transformer], + ), + returnValue: _FakeStreamChannel_7( + this, + Invocation.method( + #transform, + [transformer], + ), + ), + ) as _i9.StreamChannel); + @override _i9.StreamChannel transformStream( _i11.StreamTransformer? transformer) => - (super.noSuchMethod(Invocation.method(#transformStream, [transformer]), - returnValue: _FakeStreamChannel_7()) - as _i9.StreamChannel); + (super.noSuchMethod( + Invocation.method( + #transformStream, + [transformer], + ), + returnValue: _FakeStreamChannel_7( + this, + Invocation.method( + #transformStream, + [transformer], + ), + ), + ) as _i9.StreamChannel); + @override _i9.StreamChannel transformSink( _i18.StreamSinkTransformer? transformer) => - (super.noSuchMethod(Invocation.method(#transformSink, [transformer]), - returnValue: _FakeStreamChannel_7()) - as _i9.StreamChannel); + (super.noSuchMethod( + Invocation.method( + #transformSink, + [transformer], + ), + returnValue: _FakeStreamChannel_7( + this, + Invocation.method( + #transformSink, + [transformer], + ), + ), + ) as _i9.StreamChannel); + @override _i9.StreamChannel changeStream( _i11.Stream Function(_i11.Stream)? change) => - (super.noSuchMethod(Invocation.method(#changeStream, [change]), - returnValue: _FakeStreamChannel_7()) - as _i9.StreamChannel); + (super.noSuchMethod( + Invocation.method( + #changeStream, + [change], + ), + returnValue: _FakeStreamChannel_7( + this, + Invocation.method( + #changeStream, + [change], + ), + ), + ) as _i9.StreamChannel); + @override _i9.StreamChannel changeSink( _i11.StreamSink Function(_i11.StreamSink)? change) => - (super.noSuchMethod(Invocation.method(#changeSink, [change]), - returnValue: _FakeStreamChannel_7()) - as _i9.StreamChannel); - @override - _i9.StreamChannel cast() => - (super.noSuchMethod(Invocation.method(#cast, []), - returnValue: _FakeStreamChannel_7()) as _i9.StreamChannel); + (super.noSuchMethod( + Invocation.method( + #changeSink, + [change], + ), + returnValue: _FakeStreamChannel_7( + this, + Invocation.method( + #changeSink, + [change], + ), + ), + ) as _i9.StreamChannel); + @override - String toString() => super.toString(); + _i9.StreamChannel cast() => (super.noSuchMethod( + Invocation.method( + #cast, + [], + ), + returnValue: _FakeStreamChannel_7( + this, + Invocation.method( + #cast, + [], + ), + ), + ) as _i9.StreamChannel); } diff --git a/test/data/local/local_storage_test.mocks.dart b/test/data/local/local_storage_test.mocks.dart index 40a89d9..29ff6f7 100644 --- a/test/data/local/local_storage_test.mocks.dart +++ b/test/data/local/local_storage_test.mocks.dart @@ -1,7 +1,8 @@ -// Mocks generated by Mockito 5.0.15 from annotations +// Mocks generated by Mockito 5.4.4 from annotations // in chatwoot_sdk/test/data/local/local_storage_test.dart. // Do not manually edit this file. +// ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i3; import 'package:chatwoot_sdk/data/local/dao/chatwoot_contact_dao.dart' as _i5; @@ -16,13 +17,18 @@ import 'package:chatwoot_sdk/data/local/entity/chatwoot_message.dart' as _i8; import 'package:chatwoot_sdk/data/local/entity/chatwoot_user.dart' as _i10; import 'package:mockito/mockito.dart' as _i1; +// ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_setters_without_getters // ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class /// A class which mocks [ChatwootConversationDao]. /// @@ -35,26 +41,44 @@ class MockChatwootConversationDao extends _i1.Mock @override _i3.Future saveConversation(_i4.ChatwootConversation? conversation) => - (super.noSuchMethod(Invocation.method(#saveConversation, [conversation]), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); - @override - _i3.Future deleteConversation() => - (super.noSuchMethod(Invocation.method(#deleteConversation, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); - @override - _i3.Future onDispose() => - (super.noSuchMethod(Invocation.method(#onDispose, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); - @override - _i3.Future clearAll() => - (super.noSuchMethod(Invocation.method(#clearAll, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); - @override - String toString() => super.toString(); + (super.noSuchMethod( + Invocation.method( + #saveConversation, + [conversation], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future deleteConversation() => (super.noSuchMethod( + Invocation.method( + #deleteConversation, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future onDispose() => (super.noSuchMethod( + Invocation.method( + #onDispose, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future clearAll() => (super.noSuchMethod( + Invocation.method( + #clearAll, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); } /// A class which mocks [ChatwootContactDao]. @@ -68,26 +92,44 @@ class MockChatwootContactDao extends _i1.Mock @override _i3.Future saveContact(_i6.ChatwootContact? contact) => - (super.noSuchMethod(Invocation.method(#saveContact, [contact]), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); - @override - _i3.Future deleteContact() => - (super.noSuchMethod(Invocation.method(#deleteContact, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); - @override - _i3.Future onDispose() => - (super.noSuchMethod(Invocation.method(#onDispose, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); - @override - _i3.Future clearAll() => - (super.noSuchMethod(Invocation.method(#clearAll, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); - @override - String toString() => super.toString(); + (super.noSuchMethod( + Invocation.method( + #saveContact, + [contact], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future deleteContact() => (super.noSuchMethod( + Invocation.method( + #deleteContact, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future onDispose() => (super.noSuchMethod( + Invocation.method( + #onDispose, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future clearAll() => (super.noSuchMethod( + Invocation.method( + #clearAll, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); } /// A class which mocks [ChatwootMessagesDao]. @@ -101,43 +143,81 @@ class MockChatwootMessagesDao extends _i1.Mock @override _i3.Future saveMessage(_i8.ChatwootMessage? message) => - (super.noSuchMethod(Invocation.method(#saveMessage, [message]), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); + (super.noSuchMethod( + Invocation.method( + #saveMessage, + [message], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + @override _i3.Future saveAllMessages(List<_i8.ChatwootMessage>? messages) => - (super.noSuchMethod(Invocation.method(#saveAllMessages, [messages]), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); + (super.noSuchMethod( + Invocation.method( + #saveAllMessages, + [messages], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + @override _i8.ChatwootMessage? getMessage(int? messageId) => - (super.noSuchMethod(Invocation.method(#getMessage, [messageId])) - as _i8.ChatwootMessage?); - @override - List<_i8.ChatwootMessage> getMessages() => - (super.noSuchMethod(Invocation.method(#getMessages, []), - returnValue: <_i8.ChatwootMessage>[]) as List<_i8.ChatwootMessage>); + (super.noSuchMethod(Invocation.method( + #getMessage, + [messageId], + )) as _i8.ChatwootMessage?); + @override - _i3.Future clear() => (super.noSuchMethod(Invocation.method(#clear, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); + List<_i8.ChatwootMessage> getMessages() => (super.noSuchMethod( + Invocation.method( + #getMessages, + [], + ), + returnValue: <_i8.ChatwootMessage>[], + ) as List<_i8.ChatwootMessage>); + @override - _i3.Future deleteMessage(int? messageId) => - (super.noSuchMethod(Invocation.method(#deleteMessage, [messageId]), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); + _i3.Future clear() => (super.noSuchMethod( + Invocation.method( + #clear, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + @override - _i3.Future onDispose() => - (super.noSuchMethod(Invocation.method(#onDispose, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); + _i3.Future deleteMessage(int? messageId) => (super.noSuchMethod( + Invocation.method( + #deleteMessage, + [messageId], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + @override - _i3.Future clearAll() => - (super.noSuchMethod(Invocation.method(#clearAll, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); + _i3.Future onDispose() => (super.noSuchMethod( + Invocation.method( + #onDispose, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + @override - String toString() => super.toString(); + _i3.Future clearAll() => (super.noSuchMethod( + Invocation.method( + #clearAll, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); } /// A class which mocks [PersistedChatwootConversationDao]. @@ -150,27 +230,45 @@ class MockPersistedChatwootConversationDao extends _i1.Mock } @override - _i3.Future deleteConversation() => - (super.noSuchMethod(Invocation.method(#deleteConversation, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); + _i3.Future deleteConversation() => (super.noSuchMethod( + Invocation.method( + #deleteConversation, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + @override _i3.Future saveConversation(_i4.ChatwootConversation? conversation) => - (super.noSuchMethod(Invocation.method(#saveConversation, [conversation]), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); - @override - _i3.Future onDispose() => - (super.noSuchMethod(Invocation.method(#onDispose, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); + (super.noSuchMethod( + Invocation.method( + #saveConversation, + [conversation], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + @override - _i3.Future clearAll() => - (super.noSuchMethod(Invocation.method(#clearAll, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); + _i3.Future onDispose() => (super.noSuchMethod( + Invocation.method( + #onDispose, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + @override - String toString() => super.toString(); + _i3.Future clearAll() => (super.noSuchMethod( + Invocation.method( + #clearAll, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); } /// A class which mocks [PersistedChatwootContactDao]. @@ -183,27 +281,45 @@ class MockPersistedChatwootContactDao extends _i1.Mock } @override - _i3.Future deleteContact() => - (super.noSuchMethod(Invocation.method(#deleteContact, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); + _i3.Future deleteContact() => (super.noSuchMethod( + Invocation.method( + #deleteContact, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + @override _i3.Future saveContact(_i6.ChatwootContact? contact) => - (super.noSuchMethod(Invocation.method(#saveContact, [contact]), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); - @override - _i3.Future onDispose() => - (super.noSuchMethod(Invocation.method(#onDispose, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); + (super.noSuchMethod( + Invocation.method( + #saveContact, + [contact], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + @override - _i3.Future clearAll() => - (super.noSuchMethod(Invocation.method(#clearAll, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); + _i3.Future onDispose() => (super.noSuchMethod( + Invocation.method( + #onDispose, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + @override - String toString() => super.toString(); + _i3.Future clearAll() => (super.noSuchMethod( + Invocation.method( + #clearAll, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); } /// A class which mocks [PersistedChatwootMessagesDao]. @@ -216,44 +332,82 @@ class MockPersistedChatwootMessagesDao extends _i1.Mock } @override - _i3.Future clear() => (super.noSuchMethod(Invocation.method(#clear, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); + _i3.Future clear() => (super.noSuchMethod( + Invocation.method( + #clear, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + @override _i3.Future saveMessage(_i8.ChatwootMessage? message) => - (super.noSuchMethod(Invocation.method(#saveMessage, [message]), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); + (super.noSuchMethod( + Invocation.method( + #saveMessage, + [message], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + @override _i3.Future saveAllMessages(List<_i8.ChatwootMessage>? messages) => - (super.noSuchMethod(Invocation.method(#saveAllMessages, [messages]), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); + (super.noSuchMethod( + Invocation.method( + #saveAllMessages, + [messages], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + @override - List<_i8.ChatwootMessage> getMessages() => - (super.noSuchMethod(Invocation.method(#getMessages, []), - returnValue: <_i8.ChatwootMessage>[]) as List<_i8.ChatwootMessage>); + List<_i8.ChatwootMessage> getMessages() => (super.noSuchMethod( + Invocation.method( + #getMessages, + [], + ), + returnValue: <_i8.ChatwootMessage>[], + ) as List<_i8.ChatwootMessage>); + @override - _i3.Future onDispose() => - (super.noSuchMethod(Invocation.method(#onDispose, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); + _i3.Future onDispose() => (super.noSuchMethod( + Invocation.method( + #onDispose, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + @override - _i3.Future deleteMessage(int? messageId) => - (super.noSuchMethod(Invocation.method(#deleteMessage, [messageId]), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); + _i3.Future deleteMessage(int? messageId) => (super.noSuchMethod( + Invocation.method( + #deleteMessage, + [messageId], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + @override _i8.ChatwootMessage? getMessage(int? messageId) => - (super.noSuchMethod(Invocation.method(#getMessage, [messageId])) - as _i8.ChatwootMessage?); - @override - _i3.Future clearAll() => - (super.noSuchMethod(Invocation.method(#clearAll, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); + (super.noSuchMethod(Invocation.method( + #getMessage, + [messageId], + )) as _i8.ChatwootMessage?); + @override - String toString() => super.toString(); + _i3.Future clearAll() => (super.noSuchMethod( + Invocation.method( + #clearAll, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); } /// A class which mocks [ChatwootUserDao]. @@ -265,27 +419,44 @@ class MockChatwootUserDao extends _i1.Mock implements _i9.ChatwootUserDao { } @override - _i3.Future saveUser(_i10.ChatwootUser? user) => - (super.noSuchMethod(Invocation.method(#saveUser, [user]), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); - @override - _i3.Future deleteUser() => - (super.noSuchMethod(Invocation.method(#deleteUser, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); + _i3.Future saveUser(_i10.ChatwootUser? user) => (super.noSuchMethod( + Invocation.method( + #saveUser, + [user], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + @override - _i3.Future onDispose() => - (super.noSuchMethod(Invocation.method(#onDispose, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); + _i3.Future deleteUser() => (super.noSuchMethod( + Invocation.method( + #deleteUser, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + @override - _i3.Future clearAll() => - (super.noSuchMethod(Invocation.method(#clearAll, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); + _i3.Future onDispose() => (super.noSuchMethod( + Invocation.method( + #onDispose, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + @override - String toString() => super.toString(); + _i3.Future clearAll() => (super.noSuchMethod( + Invocation.method( + #clearAll, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); } /// A class which mocks [PersistedChatwootUserDao]. @@ -298,25 +469,42 @@ class MockPersistedChatwootUserDao extends _i1.Mock } @override - _i3.Future deleteUser() => - (super.noSuchMethod(Invocation.method(#deleteUser, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); - @override - _i3.Future saveUser(_i10.ChatwootUser? user) => - (super.noSuchMethod(Invocation.method(#saveUser, [user]), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); + _i3.Future deleteUser() => (super.noSuchMethod( + Invocation.method( + #deleteUser, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + @override - _i3.Future onDispose() => - (super.noSuchMethod(Invocation.method(#onDispose, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); + _i3.Future saveUser(_i10.ChatwootUser? user) => (super.noSuchMethod( + Invocation.method( + #saveUser, + [user], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + @override - _i3.Future clearAll() => - (super.noSuchMethod(Invocation.method(#clearAll, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i3.Future); + _i3.Future onDispose() => (super.noSuchMethod( + Invocation.method( + #onDispose, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + @override - String toString() => super.toString(); + _i3.Future clearAll() => (super.noSuchMethod( + Invocation.method( + #clearAll, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); } diff --git a/test/data/remote/chatwoot_client_api_interceptor_test.mocks.dart b/test/data/remote/chatwoot_client_api_interceptor_test.mocks.dart index 87098a9..d0b241d 100644 --- a/test/data/remote/chatwoot_client_api_interceptor_test.mocks.dart +++ b/test/data/remote/chatwoot_client_api_interceptor_test.mocks.dart @@ -1,7 +1,8 @@ -// Mocks generated by Mockito 5.0.15 from annotations +// Mocks generated by Mockito 5.4.4 from annotations // in chatwoot_sdk/test/data/remote/chatwoot_client_api_interceptor_test.dart. // Do not manually edit this file. +// ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i7; import 'package:chatwoot_sdk/data/local/entity/chatwoot_contact.dart' as _i4; @@ -12,30 +13,68 @@ import 'package:chatwoot_sdk/data/remote/service/chatwoot_client_auth_service.da as _i11; import 'package:dio/dio.dart' as _i6; import 'package:dio/src/dio.dart' as _i3; -import 'package:dio/src/dio_error.dart' as _i9; +import 'package:dio/src/dio_exception.dart' as _i9; import 'package:dio/src/dio_mixin.dart' as _i2; import 'package:dio/src/options.dart' as _i10; import 'package:dio/src/response.dart' as _i8; import 'package:mockito/mockito.dart' as _i1; import 'package:web_socket_channel/web_socket_channel.dart' as _i12; +// ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_setters_without_getters // ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class -class _FakeInterceptorState_0 extends _i1.Fake - implements _i2.InterceptorState {} +class _FakeInterceptorState_0 extends _i1.SmartFake + implements _i2.InterceptorState { + _FakeInterceptorState_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeDio_1 extends _i1.Fake implements _i3.Dio {} +class _FakeDio_1 extends _i1.SmartFake implements _i3.Dio { + _FakeDio_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeChatwootContact_2 extends _i1.Fake implements _i4.ChatwootContact {} +class _FakeChatwootContact_2 extends _i1.SmartFake + implements _i4.ChatwootContact { + _FakeChatwootContact_2( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeChatwootConversation_3 extends _i1.Fake - implements _i5.ChatwootConversation {} +class _FakeChatwootConversation_3 extends _i1.SmartFake + implements _i5.ChatwootConversation { + _FakeChatwootConversation_3( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} /// A class which mocks [ResponseInterceptorHandler]. /// @@ -47,31 +86,54 @@ class MockResponseInterceptorHandler extends _i1.Mock } @override - _i7.Future<_i2.InterceptorState> get future => - (super.noSuchMethod(Invocation.getter(#future), - returnValue: Future<_i2.InterceptorState>.value( - _FakeInterceptorState_0())) - as _i7.Future<_i2.InterceptorState>); + _i7.Future<_i2.InterceptorState> get future => (super.noSuchMethod( + Invocation.getter(#future), + returnValue: _i7.Future<_i2.InterceptorState>.value( + _FakeInterceptorState_0( + this, + Invocation.getter(#future), + )), + ) as _i7.Future<_i2.InterceptorState>); + @override - bool get isCompleted => - (super.noSuchMethod(Invocation.getter(#isCompleted), returnValue: false) - as bool); + bool get isCompleted => (super.noSuchMethod( + Invocation.getter(#isCompleted), + returnValue: false, + ) as bool); + @override - void next(_i8.Response? response) => - super.noSuchMethod(Invocation.method(#next, [response]), - returnValueForMissingStub: null); + void next(_i8.Response? response) => super.noSuchMethod( + Invocation.method( + #next, + [response], + ), + returnValueForMissingStub: null, + ); + @override - void resolve(_i8.Response? response) => - super.noSuchMethod(Invocation.method(#resolve, [response]), - returnValueForMissingStub: null); + void resolve(_i8.Response? response) => super.noSuchMethod( + Invocation.method( + #resolve, + [response], + ), + returnValueForMissingStub: null, + ); + @override - void reject(_i9.DioError? error, - [bool? callFollowingErrorInterceptor = false]) => + void reject( + _i9.DioException? error, [ + bool? callFollowingErrorInterceptor = false, + ]) => super.noSuchMethod( - Invocation.method(#reject, [error, callFollowingErrorInterceptor]), - returnValueForMissingStub: null); - @override - String toString() => super.toString(); + Invocation.method( + #reject, + [ + error, + callFollowingErrorInterceptor, + ], + ), + returnValueForMissingStub: null, + ); } /// A class which mocks [RequestInterceptorHandler]. @@ -84,34 +146,61 @@ class MockRequestInterceptorHandler extends _i1.Mock } @override - _i7.Future<_i2.InterceptorState> get future => - (super.noSuchMethod(Invocation.getter(#future), - returnValue: Future<_i2.InterceptorState>.value( - _FakeInterceptorState_0())) - as _i7.Future<_i2.InterceptorState>); + _i7.Future<_i2.InterceptorState> get future => (super.noSuchMethod( + Invocation.getter(#future), + returnValue: _i7.Future<_i2.InterceptorState>.value( + _FakeInterceptorState_0( + this, + Invocation.getter(#future), + )), + ) as _i7.Future<_i2.InterceptorState>); + @override - bool get isCompleted => - (super.noSuchMethod(Invocation.getter(#isCompleted), returnValue: false) - as bool); + bool get isCompleted => (super.noSuchMethod( + Invocation.getter(#isCompleted), + returnValue: false, + ) as bool); + @override - void next(_i10.RequestOptions? requestOptions) => - super.noSuchMethod(Invocation.method(#next, [requestOptions]), - returnValueForMissingStub: null); + void next(_i10.RequestOptions? requestOptions) => super.noSuchMethod( + Invocation.method( + #next, + [requestOptions], + ), + returnValueForMissingStub: null, + ); + @override - void resolve(_i8.Response? response, - [bool? callFollowingResponseInterceptor = false]) => + void resolve( + _i8.Response? response, [ + bool? callFollowingResponseInterceptor = false, + ]) => super.noSuchMethod( - Invocation.method( - #resolve, [response, callFollowingResponseInterceptor]), - returnValueForMissingStub: null); + Invocation.method( + #resolve, + [ + response, + callFollowingResponseInterceptor, + ], + ), + returnValueForMissingStub: null, + ); + @override - void reject(_i9.DioError? error, - [bool? callFollowingErrorInterceptor = false]) => + void reject( + _i9.DioException? error, [ + bool? callFollowingErrorInterceptor = false, + ]) => super.noSuchMethod( - Invocation.method(#reject, [error, callFollowingErrorInterceptor]), - returnValueForMissingStub: null); - @override - String toString() => super.toString(); + Invocation.method( + #reject, + [ + error, + callFollowingErrorInterceptor, + ], + ), + returnValueForMissingStub: null, + ); } /// A class which mocks [ChatwootClientAuthService]. @@ -124,30 +213,72 @@ class MockChatwootClientAuthService extends _i1.Mock } @override - set connection(_i12.WebSocketChannel? _connection) => - super.noSuchMethod(Invocation.setter(#connection, _connection), - returnValueForMissingStub: null); + set connection(_i12.WebSocketChannel? _connection) => super.noSuchMethod( + Invocation.setter( + #connection, + _connection, + ), + returnValueForMissingStub: null, + ); + @override - _i3.Dio get dio => - (super.noSuchMethod(Invocation.getter(#dio), returnValue: _FakeDio_1()) - as _i3.Dio); + _i3.Dio get dio => (super.noSuchMethod( + Invocation.getter(#dio), + returnValue: _FakeDio_1( + this, + Invocation.getter(#dio), + ), + ) as _i3.Dio); + @override _i7.Future<_i4.ChatwootContact> createNewContact( - String? inboxIdentifier, _i13.ChatwootUser? user) => + String? inboxIdentifier, + _i13.ChatwootUser? user, + ) => (super.noSuchMethod( - Invocation.method(#createNewContact, [inboxIdentifier, user]), - returnValue: - Future<_i4.ChatwootContact>.value(_FakeChatwootContact_2())) - as _i7.Future<_i4.ChatwootContact>); + Invocation.method( + #createNewContact, + [ + inboxIdentifier, + user, + ], + ), + returnValue: + _i7.Future<_i4.ChatwootContact>.value(_FakeChatwootContact_2( + this, + Invocation.method( + #createNewContact, + [ + inboxIdentifier, + user, + ], + ), + )), + ) as _i7.Future<_i4.ChatwootContact>); + @override _i7.Future<_i5.ChatwootConversation> createNewConversation( - String? inboxIdentifier, String? contactIdentifier) => + String? inboxIdentifier, + String? contactIdentifier, + ) => (super.noSuchMethod( - Invocation.method( - #createNewConversation, [inboxIdentifier, contactIdentifier]), - returnValue: Future<_i5.ChatwootConversation>.value( - _FakeChatwootConversation_3())) - as _i7.Future<_i5.ChatwootConversation>); - @override - String toString() => super.toString(); + Invocation.method( + #createNewConversation, + [ + inboxIdentifier, + contactIdentifier, + ], + ), + returnValue: _i7.Future<_i5.ChatwootConversation>.value( + _FakeChatwootConversation_3( + this, + Invocation.method( + #createNewConversation, + [ + inboxIdentifier, + contactIdentifier, + ], + ), + )), + ) as _i7.Future<_i5.ChatwootConversation>); } diff --git a/test/data/remote/chatwoot_client_auth_service_test.mocks.dart b/test/data/remote/chatwoot_client_auth_service_test.mocks.dart index 3de2827..d966aca 100644 --- a/test/data/remote/chatwoot_client_auth_service_test.mocks.dart +++ b/test/data/remote/chatwoot_client_auth_service_test.mocks.dart @@ -1,7 +1,8 @@ -// Mocks generated by Mockito 5.0.15 from annotations +// Mocks generated by Mockito 5.4.4 from annotations // in chatwoot_sdk/test/data/remote/chatwoot_client_auth_service_test.dart. // Do not manually edit this file. +// ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i8; import 'package:dio/src/adapter.dart' as _i3; @@ -13,24 +14,69 @@ import 'package:dio/src/response.dart' as _i6; import 'package:dio/src/transformer.dart' as _i4; import 'package:mockito/mockito.dart' as _i1; +// ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_setters_without_getters // ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class -class _FakeBaseOptions_0 extends _i1.Fake implements _i2.BaseOptions {} +class _FakeBaseOptions_0 extends _i1.SmartFake implements _i2.BaseOptions { + _FakeBaseOptions_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeHttpClientAdapter_1 extends _i1.Fake - implements _i3.HttpClientAdapter {} +class _FakeHttpClientAdapter_1 extends _i1.SmartFake + implements _i3.HttpClientAdapter { + _FakeHttpClientAdapter_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeTransformer_2 extends _i1.Fake implements _i4.Transformer {} +class _FakeTransformer_2 extends _i1.SmartFake implements _i4.Transformer { + _FakeTransformer_2( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeInterceptors_3 extends _i1.Fake implements _i5.Interceptors {} +class _FakeInterceptors_3 extends _i1.SmartFake implements _i5.Interceptors { + _FakeInterceptors_3( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeResponse_4 extends _i1.Fake implements _i6.Response {} +class _FakeResponse_4 extends _i1.SmartFake implements _i6.Response { + _FakeResponse_4( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} /// A class which mocks [Dio]. /// @@ -41,341 +87,700 @@ class MockDio extends _i1.Mock implements _i7.Dio { } @override - _i2.BaseOptions get options => - (super.noSuchMethod(Invocation.getter(#options), - returnValue: _FakeBaseOptions_0()) as _i2.BaseOptions); + _i2.BaseOptions get options => (super.noSuchMethod( + Invocation.getter(#options), + returnValue: _FakeBaseOptions_0( + this, + Invocation.getter(#options), + ), + ) as _i2.BaseOptions); + @override - set options(_i2.BaseOptions? _options) => - super.noSuchMethod(Invocation.setter(#options, _options), - returnValueForMissingStub: null); + set options(_i2.BaseOptions? _options) => super.noSuchMethod( + Invocation.setter( + #options, + _options, + ), + returnValueForMissingStub: null, + ); + @override - _i3.HttpClientAdapter get httpClientAdapter => - (super.noSuchMethod(Invocation.getter(#httpClientAdapter), - returnValue: _FakeHttpClientAdapter_1()) as _i3.HttpClientAdapter); + _i3.HttpClientAdapter get httpClientAdapter => (super.noSuchMethod( + Invocation.getter(#httpClientAdapter), + returnValue: _FakeHttpClientAdapter_1( + this, + Invocation.getter(#httpClientAdapter), + ), + ) as _i3.HttpClientAdapter); + @override - set httpClientAdapter(_i3.HttpClientAdapter? _httpClientAdapter) => super - .noSuchMethod(Invocation.setter(#httpClientAdapter, _httpClientAdapter), - returnValueForMissingStub: null); + set httpClientAdapter(_i3.HttpClientAdapter? _httpClientAdapter) => + super.noSuchMethod( + Invocation.setter( + #httpClientAdapter, + _httpClientAdapter, + ), + returnValueForMissingStub: null, + ); + @override - _i4.Transformer get transformer => - (super.noSuchMethod(Invocation.getter(#transformer), - returnValue: _FakeTransformer_2()) as _i4.Transformer); + _i4.Transformer get transformer => (super.noSuchMethod( + Invocation.getter(#transformer), + returnValue: _FakeTransformer_2( + this, + Invocation.getter(#transformer), + ), + ) as _i4.Transformer); + @override - set transformer(_i4.Transformer? _transformer) => - super.noSuchMethod(Invocation.setter(#transformer, _transformer), - returnValueForMissingStub: null); + set transformer(_i4.Transformer? _transformer) => super.noSuchMethod( + Invocation.setter( + #transformer, + _transformer, + ), + returnValueForMissingStub: null, + ); + @override - _i5.Interceptors get interceptors => - (super.noSuchMethod(Invocation.getter(#interceptors), - returnValue: _FakeInterceptors_3()) as _i5.Interceptors); + _i5.Interceptors get interceptors => (super.noSuchMethod( + Invocation.getter(#interceptors), + returnValue: _FakeInterceptors_3( + this, + Invocation.getter(#interceptors), + ), + ) as _i5.Interceptors); + @override - void close({bool? force = false}) => - super.noSuchMethod(Invocation.method(#close, [], {#force: force}), - returnValueForMissingStub: null); + void close({bool? force = false}) => super.noSuchMethod( + Invocation.method( + #close, + [], + {#force: force}, + ), + returnValueForMissingStub: null, + ); + @override - _i8.Future<_i6.Response> get(String? path, - {Map? queryParameters, - _i2.Options? options, - _i9.CancelToken? cancelToken, - _i2.ProgressCallback? onReceiveProgress}) => + _i8.Future<_i6.Response> head( + String? path, { + Object? data, + Map? queryParameters, + _i2.Options? options, + _i9.CancelToken? cancelToken, + }) => (super.noSuchMethod( - Invocation.method(#get, [ - path - ], { - #queryParameters: queryParameters, - #options: options, - #cancelToken: cancelToken, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i8.Future<_i6.Response>); + Invocation.method( + #head, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + }, + ), + returnValue: _i8.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #head, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + }, + ), + )), + ) as _i8.Future<_i6.Response>); + @override - _i8.Future<_i6.Response> getUri(Uri? uri, - {_i2.Options? options, - _i9.CancelToken? cancelToken, - _i2.ProgressCallback? onReceiveProgress}) => + _i8.Future<_i6.Response> headUri( + Uri? uri, { + Object? data, + _i2.Options? options, + _i9.CancelToken? cancelToken, + }) => (super.noSuchMethod( - Invocation.method(#getUri, [ - uri - ], { - #options: options, - #cancelToken: cancelToken, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i8.Future<_i6.Response>); + Invocation.method( + #headUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + }, + ), + returnValue: _i8.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #headUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + }, + ), + )), + ) as _i8.Future<_i6.Response>); + @override - _i8.Future<_i6.Response> post(String? path, - {dynamic data, - Map? queryParameters, - _i2.Options? options, - _i9.CancelToken? cancelToken, - _i2.ProgressCallback? onSendProgress, - _i2.ProgressCallback? onReceiveProgress}) => + _i8.Future<_i6.Response> get( + String? path, { + Object? data, + Map? queryParameters, + _i2.Options? options, + _i9.CancelToken? cancelToken, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#post, [ - path - ], { - #data: data, - #queryParameters: queryParameters, - #options: options, - #cancelToken: cancelToken, - #onSendProgress: onSendProgress, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i8.Future<_i6.Response>); + Invocation.method( + #get, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i8.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #get, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i8.Future<_i6.Response>); + @override - _i8.Future<_i6.Response> postUri(Uri? uri, - {dynamic data, - _i2.Options? options, - _i9.CancelToken? cancelToken, - _i2.ProgressCallback? onSendProgress, - _i2.ProgressCallback? onReceiveProgress}) => + _i8.Future<_i6.Response> getUri( + Uri? uri, { + Object? data, + _i2.Options? options, + _i9.CancelToken? cancelToken, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#postUri, [ - uri - ], { - #data: data, - #options: options, - #cancelToken: cancelToken, - #onSendProgress: onSendProgress, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i8.Future<_i6.Response>); + Invocation.method( + #getUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i8.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #getUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i8.Future<_i6.Response>); + @override - _i8.Future<_i6.Response> put(String? path, - {dynamic data, - Map? queryParameters, - _i2.Options? options, - _i9.CancelToken? cancelToken, - _i2.ProgressCallback? onSendProgress, - _i2.ProgressCallback? onReceiveProgress}) => + _i8.Future<_i6.Response> post( + String? path, { + Object? data, + Map? queryParameters, + _i2.Options? options, + _i9.CancelToken? cancelToken, + _i2.ProgressCallback? onSendProgress, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#put, [ - path - ], { - #data: data, - #queryParameters: queryParameters, - #options: options, - #cancelToken: cancelToken, - #onSendProgress: onSendProgress, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i8.Future<_i6.Response>); + Invocation.method( + #post, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i8.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #post, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i8.Future<_i6.Response>); + @override - _i8.Future<_i6.Response> putUri(Uri? uri, - {dynamic data, - _i2.Options? options, - _i9.CancelToken? cancelToken, - _i2.ProgressCallback? onSendProgress, - _i2.ProgressCallback? onReceiveProgress}) => + _i8.Future<_i6.Response> postUri( + Uri? uri, { + Object? data, + _i2.Options? options, + _i9.CancelToken? cancelToken, + _i2.ProgressCallback? onSendProgress, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#putUri, [ - uri - ], { - #data: data, - #options: options, - #cancelToken: cancelToken, - #onSendProgress: onSendProgress, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i8.Future<_i6.Response>); + Invocation.method( + #postUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i8.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #postUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i8.Future<_i6.Response>); + @override - _i8.Future<_i6.Response> head(String? path, - {dynamic data, - Map? queryParameters, - _i2.Options? options, - _i9.CancelToken? cancelToken}) => + _i8.Future<_i6.Response> put( + String? path, { + Object? data, + Map? queryParameters, + _i2.Options? options, + _i9.CancelToken? cancelToken, + _i2.ProgressCallback? onSendProgress, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#head, [ - path - ], { - #data: data, - #queryParameters: queryParameters, - #options: options, - #cancelToken: cancelToken - }), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i8.Future<_i6.Response>); + Invocation.method( + #put, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i8.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #put, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i8.Future<_i6.Response>); + @override - _i8.Future<_i6.Response> headUri(Uri? uri, - {dynamic data, _i2.Options? options, _i9.CancelToken? cancelToken}) => + _i8.Future<_i6.Response> putUri( + Uri? uri, { + Object? data, + _i2.Options? options, + _i9.CancelToken? cancelToken, + _i2.ProgressCallback? onSendProgress, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#headUri, [uri], - {#data: data, #options: options, #cancelToken: cancelToken}), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i8.Future<_i6.Response>); + Invocation.method( + #putUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i8.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #putUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i8.Future<_i6.Response>); + @override - _i8.Future<_i6.Response> delete(String? path, - {dynamic data, - Map? queryParameters, - _i2.Options? options, - _i9.CancelToken? cancelToken}) => + _i8.Future<_i6.Response> patch( + String? path, { + Object? data, + Map? queryParameters, + _i2.Options? options, + _i9.CancelToken? cancelToken, + _i2.ProgressCallback? onSendProgress, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#delete, [ - path - ], { - #data: data, - #queryParameters: queryParameters, - #options: options, - #cancelToken: cancelToken - }), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i8.Future<_i6.Response>); + Invocation.method( + #patch, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i8.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #patch, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i8.Future<_i6.Response>); + @override - _i8.Future<_i6.Response> deleteUri(Uri? uri, - {dynamic data, _i2.Options? options, _i9.CancelToken? cancelToken}) => + _i8.Future<_i6.Response> patchUri( + Uri? uri, { + Object? data, + _i2.Options? options, + _i9.CancelToken? cancelToken, + _i2.ProgressCallback? onSendProgress, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#deleteUri, [uri], - {#data: data, #options: options, #cancelToken: cancelToken}), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i8.Future<_i6.Response>); + Invocation.method( + #patchUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i8.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #patchUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i8.Future<_i6.Response>); + @override - _i8.Future<_i6.Response> patch(String? path, - {dynamic data, - Map? queryParameters, - _i2.Options? options, - _i9.CancelToken? cancelToken, - _i2.ProgressCallback? onSendProgress, - _i2.ProgressCallback? onReceiveProgress}) => + _i8.Future<_i6.Response> delete( + String? path, { + Object? data, + Map? queryParameters, + _i2.Options? options, + _i9.CancelToken? cancelToken, + }) => (super.noSuchMethod( - Invocation.method(#patch, [ - path - ], { - #data: data, - #queryParameters: queryParameters, - #options: options, - #cancelToken: cancelToken, - #onSendProgress: onSendProgress, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i8.Future<_i6.Response>); + Invocation.method( + #delete, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + }, + ), + returnValue: _i8.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #delete, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + }, + ), + )), + ) as _i8.Future<_i6.Response>); + @override - _i8.Future<_i6.Response> patchUri(Uri? uri, - {dynamic data, - _i2.Options? options, - _i9.CancelToken? cancelToken, - _i2.ProgressCallback? onSendProgress, - _i2.ProgressCallback? onReceiveProgress}) => + _i8.Future<_i6.Response> deleteUri( + Uri? uri, { + Object? data, + _i2.Options? options, + _i9.CancelToken? cancelToken, + }) => (super.noSuchMethod( - Invocation.method(#patchUri, [ - uri - ], { - #data: data, - #options: options, - #cancelToken: cancelToken, - #onSendProgress: onSendProgress, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i8.Future<_i6.Response>); - @override - void lock() => super.noSuchMethod(Invocation.method(#lock, []), - returnValueForMissingStub: null); - @override - void unlock() => super.noSuchMethod(Invocation.method(#unlock, []), - returnValueForMissingStub: null); - @override - void clear() => super.noSuchMethod(Invocation.method(#clear, []), - returnValueForMissingStub: null); + Invocation.method( + #deleteUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + }, + ), + returnValue: _i8.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #deleteUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + }, + ), + )), + ) as _i8.Future<_i6.Response>); + @override - _i8.Future<_i6.Response> download(String? urlPath, dynamic savePath, - {_i2.ProgressCallback? onReceiveProgress, - Map? queryParameters, - _i9.CancelToken? cancelToken, - bool? deleteOnError = true, - String? lengthHeader = r'content-length', - dynamic data, - _i2.Options? options}) => + _i8.Future<_i6.Response> download( + String? urlPath, + dynamic savePath, { + _i2.ProgressCallback? onReceiveProgress, + Map? queryParameters, + _i9.CancelToken? cancelToken, + bool? deleteOnError = true, + String? lengthHeader = r'content-length', + Object? data, + _i2.Options? options, + }) => (super.noSuchMethod( - Invocation.method(#download, [ - urlPath, - savePath - ], { - #onReceiveProgress: onReceiveProgress, - #queryParameters: queryParameters, - #cancelToken: cancelToken, - #deleteOnError: deleteOnError, - #lengthHeader: lengthHeader, - #data: data, - #options: options - }), - returnValue: Future<_i6.Response>.value( - _FakeResponse_4())) - as _i8.Future<_i6.Response>); + Invocation.method( + #download, + [ + urlPath, + savePath, + ], + { + #onReceiveProgress: onReceiveProgress, + #queryParameters: queryParameters, + #cancelToken: cancelToken, + #deleteOnError: deleteOnError, + #lengthHeader: lengthHeader, + #data: data, + #options: options, + }, + ), + returnValue: + _i8.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #download, + [ + urlPath, + savePath, + ], + { + #onReceiveProgress: onReceiveProgress, + #queryParameters: queryParameters, + #cancelToken: cancelToken, + #deleteOnError: deleteOnError, + #lengthHeader: lengthHeader, + #data: data, + #options: options, + }, + ), + )), + ) as _i8.Future<_i6.Response>); + @override - _i8.Future<_i6.Response> downloadUri(Uri? uri, dynamic savePath, - {_i2.ProgressCallback? onReceiveProgress, - _i9.CancelToken? cancelToken, - bool? deleteOnError = true, - String? lengthHeader = r'content-length', - dynamic data, - _i2.Options? options}) => + _i8.Future<_i6.Response> downloadUri( + Uri? uri, + dynamic savePath, { + _i2.ProgressCallback? onReceiveProgress, + _i9.CancelToken? cancelToken, + bool? deleteOnError = true, + String? lengthHeader = r'content-length', + Object? data, + _i2.Options? options, + }) => (super.noSuchMethod( - Invocation.method(#downloadUri, [ - uri, - savePath - ], { - #onReceiveProgress: onReceiveProgress, - #cancelToken: cancelToken, - #deleteOnError: deleteOnError, - #lengthHeader: lengthHeader, - #data: data, - #options: options - }), - returnValue: Future<_i6.Response>.value( - _FakeResponse_4())) - as _i8.Future<_i6.Response>); + Invocation.method( + #downloadUri, + [ + uri, + savePath, + ], + { + #onReceiveProgress: onReceiveProgress, + #cancelToken: cancelToken, + #deleteOnError: deleteOnError, + #lengthHeader: lengthHeader, + #data: data, + #options: options, + }, + ), + returnValue: + _i8.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #downloadUri, + [ + uri, + savePath, + ], + { + #onReceiveProgress: onReceiveProgress, + #cancelToken: cancelToken, + #deleteOnError: deleteOnError, + #lengthHeader: lengthHeader, + #data: data, + #options: options, + }, + ), + )), + ) as _i8.Future<_i6.Response>); + @override - _i8.Future<_i6.Response> request(String? path, - {dynamic data, - Map? queryParameters, - _i9.CancelToken? cancelToken, - _i2.Options? options, - _i2.ProgressCallback? onSendProgress, - _i2.ProgressCallback? onReceiveProgress}) => + _i8.Future<_i6.Response> request( + String? url, { + Object? data, + Map? queryParameters, + _i9.CancelToken? cancelToken, + _i2.Options? options, + _i2.ProgressCallback? onSendProgress, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#request, [ - path - ], { - #data: data, - #queryParameters: queryParameters, - #cancelToken: cancelToken, - #options: options, - #onSendProgress: onSendProgress, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i8.Future<_i6.Response>); + Invocation.method( + #request, + [url], + { + #data: data, + #queryParameters: queryParameters, + #cancelToken: cancelToken, + #options: options, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i8.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #request, + [url], + { + #data: data, + #queryParameters: queryParameters, + #cancelToken: cancelToken, + #options: options, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i8.Future<_i6.Response>); + @override - _i8.Future<_i6.Response> requestUri(Uri? uri, - {dynamic data, - _i9.CancelToken? cancelToken, - _i2.Options? options, - _i2.ProgressCallback? onSendProgress, - _i2.ProgressCallback? onReceiveProgress}) => + _i8.Future<_i6.Response> requestUri( + Uri? uri, { + Object? data, + _i9.CancelToken? cancelToken, + _i2.Options? options, + _i2.ProgressCallback? onSendProgress, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#requestUri, [ - uri - ], { - #data: data, - #cancelToken: cancelToken, - #options: options, - #onSendProgress: onSendProgress, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i8.Future<_i6.Response>); + Invocation.method( + #requestUri, + [uri], + { + #data: data, + #cancelToken: cancelToken, + #options: options, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i8.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #requestUri, + [uri], + { + #data: data, + #cancelToken: cancelToken, + #options: options, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i8.Future<_i6.Response>); + @override _i8.Future<_i6.Response> fetch(_i2.RequestOptions? requestOptions) => - (super.noSuchMethod(Invocation.method(#fetch, [requestOptions]), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i8.Future<_i6.Response>); - @override - String toString() => super.toString(); + (super.noSuchMethod( + Invocation.method( + #fetch, + [requestOptions], + ), + returnValue: _i8.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #fetch, + [requestOptions], + ), + )), + ) as _i8.Future<_i6.Response>); } diff --git a/test/data/remote/chatwoot_client_service_test.mocks.dart b/test/data/remote/chatwoot_client_service_test.mocks.dart index f7163d1..5fdac38 100644 --- a/test/data/remote/chatwoot_client_service_test.mocks.dart +++ b/test/data/remote/chatwoot_client_service_test.mocks.dart @@ -1,7 +1,8 @@ -// Mocks generated by Mockito 5.0.15 from annotations +// Mocks generated by Mockito 5.4.4 from annotations // in chatwoot_sdk/test/data/remote/chatwoot_client_service_test.dart. // Do not manually edit this file. +// ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i10; import 'package:async/async.dart' as _i12; @@ -16,28 +17,89 @@ import 'package:mockito/mockito.dart' as _i1; import 'package:stream_channel/stream_channel.dart' as _i8; import 'package:web_socket_channel/src/channel.dart' as _i7; +// ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_setters_without_getters // ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class -class _FakeBaseOptions_0 extends _i1.Fake implements _i2.BaseOptions {} +class _FakeBaseOptions_0 extends _i1.SmartFake implements _i2.BaseOptions { + _FakeBaseOptions_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeHttpClientAdapter_1 extends _i1.Fake - implements _i3.HttpClientAdapter {} +class _FakeHttpClientAdapter_1 extends _i1.SmartFake + implements _i3.HttpClientAdapter { + _FakeHttpClientAdapter_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeTransformer_2 extends _i1.Fake implements _i4.Transformer {} +class _FakeTransformer_2 extends _i1.SmartFake implements _i4.Transformer { + _FakeTransformer_2( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeInterceptors_3 extends _i1.Fake implements _i5.Interceptors {} +class _FakeInterceptors_3 extends _i1.SmartFake implements _i5.Interceptors { + _FakeInterceptors_3( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeResponse_4 extends _i1.Fake implements _i6.Response {} +class _FakeResponse_4 extends _i1.SmartFake implements _i6.Response { + _FakeResponse_4( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeWebSocketSink_5 extends _i1.Fake implements _i7.WebSocketSink {} +class _FakeWebSocketSink_5 extends _i1.SmartFake implements _i7.WebSocketSink { + _FakeWebSocketSink_5( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeStreamChannel_6 extends _i1.Fake implements _i8.StreamChannel { +class _FakeStreamChannel_6 extends _i1.SmartFake + implements _i8.StreamChannel { + _FakeStreamChannel_6( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } /// A class which mocks [Dio]. @@ -49,347 +111,702 @@ class MockDio extends _i1.Mock implements _i9.Dio { } @override - _i2.BaseOptions get options => - (super.noSuchMethod(Invocation.getter(#options), - returnValue: _FakeBaseOptions_0()) as _i2.BaseOptions); + _i2.BaseOptions get options => (super.noSuchMethod( + Invocation.getter(#options), + returnValue: _FakeBaseOptions_0( + this, + Invocation.getter(#options), + ), + ) as _i2.BaseOptions); + @override - set options(_i2.BaseOptions? _options) => - super.noSuchMethod(Invocation.setter(#options, _options), - returnValueForMissingStub: null); + set options(_i2.BaseOptions? _options) => super.noSuchMethod( + Invocation.setter( + #options, + _options, + ), + returnValueForMissingStub: null, + ); + @override - _i3.HttpClientAdapter get httpClientAdapter => - (super.noSuchMethod(Invocation.getter(#httpClientAdapter), - returnValue: _FakeHttpClientAdapter_1()) as _i3.HttpClientAdapter); + _i3.HttpClientAdapter get httpClientAdapter => (super.noSuchMethod( + Invocation.getter(#httpClientAdapter), + returnValue: _FakeHttpClientAdapter_1( + this, + Invocation.getter(#httpClientAdapter), + ), + ) as _i3.HttpClientAdapter); + @override - set httpClientAdapter(_i3.HttpClientAdapter? _httpClientAdapter) => super - .noSuchMethod(Invocation.setter(#httpClientAdapter, _httpClientAdapter), - returnValueForMissingStub: null); + set httpClientAdapter(_i3.HttpClientAdapter? _httpClientAdapter) => + super.noSuchMethod( + Invocation.setter( + #httpClientAdapter, + _httpClientAdapter, + ), + returnValueForMissingStub: null, + ); + @override - _i4.Transformer get transformer => - (super.noSuchMethod(Invocation.getter(#transformer), - returnValue: _FakeTransformer_2()) as _i4.Transformer); + _i4.Transformer get transformer => (super.noSuchMethod( + Invocation.getter(#transformer), + returnValue: _FakeTransformer_2( + this, + Invocation.getter(#transformer), + ), + ) as _i4.Transformer); + @override - set transformer(_i4.Transformer? _transformer) => - super.noSuchMethod(Invocation.setter(#transformer, _transformer), - returnValueForMissingStub: null); + set transformer(_i4.Transformer? _transformer) => super.noSuchMethod( + Invocation.setter( + #transformer, + _transformer, + ), + returnValueForMissingStub: null, + ); + @override - _i5.Interceptors get interceptors => - (super.noSuchMethod(Invocation.getter(#interceptors), - returnValue: _FakeInterceptors_3()) as _i5.Interceptors); + _i5.Interceptors get interceptors => (super.noSuchMethod( + Invocation.getter(#interceptors), + returnValue: _FakeInterceptors_3( + this, + Invocation.getter(#interceptors), + ), + ) as _i5.Interceptors); + @override - void close({bool? force = false}) => - super.noSuchMethod(Invocation.method(#close, [], {#force: force}), - returnValueForMissingStub: null); + void close({bool? force = false}) => super.noSuchMethod( + Invocation.method( + #close, + [], + {#force: force}, + ), + returnValueForMissingStub: null, + ); + @override - _i10.Future<_i6.Response> get(String? path, - {Map? queryParameters, - _i2.Options? options, - _i11.CancelToken? cancelToken, - _i2.ProgressCallback? onReceiveProgress}) => + _i10.Future<_i6.Response> head( + String? path, { + Object? data, + Map? queryParameters, + _i2.Options? options, + _i11.CancelToken? cancelToken, + }) => (super.noSuchMethod( - Invocation.method(#get, [ - path - ], { - #queryParameters: queryParameters, - #options: options, - #cancelToken: cancelToken, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i10.Future<_i6.Response>); - @override - _i10.Future<_i6.Response> getUri(Uri? uri, - {_i2.Options? options, - _i11.CancelToken? cancelToken, - _i2.ProgressCallback? onReceiveProgress}) => + Invocation.method( + #head, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + }, + ), + returnValue: _i10.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #head, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + }, + ), + )), + ) as _i10.Future<_i6.Response>); + + @override + _i10.Future<_i6.Response> headUri( + Uri? uri, { + Object? data, + _i2.Options? options, + _i11.CancelToken? cancelToken, + }) => (super.noSuchMethod( - Invocation.method(#getUri, [ - uri - ], { - #options: options, - #cancelToken: cancelToken, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i10.Future<_i6.Response>); - @override - _i10.Future<_i6.Response> post(String? path, - {dynamic data, - Map? queryParameters, - _i2.Options? options, - _i11.CancelToken? cancelToken, - _i2.ProgressCallback? onSendProgress, - _i2.ProgressCallback? onReceiveProgress}) => + Invocation.method( + #headUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + }, + ), + returnValue: _i10.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #headUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + }, + ), + )), + ) as _i10.Future<_i6.Response>); + + @override + _i10.Future<_i6.Response> get( + String? path, { + Object? data, + Map? queryParameters, + _i2.Options? options, + _i11.CancelToken? cancelToken, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#post, [ - path - ], { - #data: data, - #queryParameters: queryParameters, - #options: options, - #cancelToken: cancelToken, - #onSendProgress: onSendProgress, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i10.Future<_i6.Response>); - @override - _i10.Future<_i6.Response> postUri(Uri? uri, - {dynamic data, - _i2.Options? options, - _i11.CancelToken? cancelToken, - _i2.ProgressCallback? onSendProgress, - _i2.ProgressCallback? onReceiveProgress}) => + Invocation.method( + #get, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i10.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #get, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i10.Future<_i6.Response>); + + @override + _i10.Future<_i6.Response> getUri( + Uri? uri, { + Object? data, + _i2.Options? options, + _i11.CancelToken? cancelToken, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#postUri, [ - uri - ], { - #data: data, - #options: options, - #cancelToken: cancelToken, - #onSendProgress: onSendProgress, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i10.Future<_i6.Response>); - @override - _i10.Future<_i6.Response> put(String? path, - {dynamic data, - Map? queryParameters, - _i2.Options? options, - _i11.CancelToken? cancelToken, - _i2.ProgressCallback? onSendProgress, - _i2.ProgressCallback? onReceiveProgress}) => + Invocation.method( + #getUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i10.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #getUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i10.Future<_i6.Response>); + + @override + _i10.Future<_i6.Response> post( + String? path, { + Object? data, + Map? queryParameters, + _i2.Options? options, + _i11.CancelToken? cancelToken, + _i2.ProgressCallback? onSendProgress, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#put, [ - path - ], { - #data: data, - #queryParameters: queryParameters, - #options: options, - #cancelToken: cancelToken, - #onSendProgress: onSendProgress, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i10.Future<_i6.Response>); - @override - _i10.Future<_i6.Response> putUri(Uri? uri, - {dynamic data, - _i2.Options? options, - _i11.CancelToken? cancelToken, - _i2.ProgressCallback? onSendProgress, - _i2.ProgressCallback? onReceiveProgress}) => + Invocation.method( + #post, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i10.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #post, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i10.Future<_i6.Response>); + + @override + _i10.Future<_i6.Response> postUri( + Uri? uri, { + Object? data, + _i2.Options? options, + _i11.CancelToken? cancelToken, + _i2.ProgressCallback? onSendProgress, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#putUri, [ - uri - ], { - #data: data, - #options: options, - #cancelToken: cancelToken, - #onSendProgress: onSendProgress, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i10.Future<_i6.Response>); - @override - _i10.Future<_i6.Response> head(String? path, - {dynamic data, - Map? queryParameters, - _i2.Options? options, - _i11.CancelToken? cancelToken}) => + Invocation.method( + #postUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i10.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #postUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i10.Future<_i6.Response>); + + @override + _i10.Future<_i6.Response> put( + String? path, { + Object? data, + Map? queryParameters, + _i2.Options? options, + _i11.CancelToken? cancelToken, + _i2.ProgressCallback? onSendProgress, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#head, [ - path - ], { - #data: data, - #queryParameters: queryParameters, - #options: options, - #cancelToken: cancelToken - }), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i10.Future<_i6.Response>); - @override - _i10.Future<_i6.Response> headUri(Uri? uri, - {dynamic data, - _i2.Options? options, - _i11.CancelToken? cancelToken}) => + Invocation.method( + #put, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i10.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #put, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i10.Future<_i6.Response>); + + @override + _i10.Future<_i6.Response> putUri( + Uri? uri, { + Object? data, + _i2.Options? options, + _i11.CancelToken? cancelToken, + _i2.ProgressCallback? onSendProgress, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#headUri, [uri], - {#data: data, #options: options, #cancelToken: cancelToken}), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i10.Future<_i6.Response>); - @override - _i10.Future<_i6.Response> delete(String? path, - {dynamic data, - Map? queryParameters, - _i2.Options? options, - _i11.CancelToken? cancelToken}) => + Invocation.method( + #putUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i10.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #putUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i10.Future<_i6.Response>); + + @override + _i10.Future<_i6.Response> patch( + String? path, { + Object? data, + Map? queryParameters, + _i2.Options? options, + _i11.CancelToken? cancelToken, + _i2.ProgressCallback? onSendProgress, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#delete, [ - path - ], { - #data: data, - #queryParameters: queryParameters, - #options: options, - #cancelToken: cancelToken - }), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i10.Future<_i6.Response>); - @override - _i10.Future<_i6.Response> deleteUri(Uri? uri, - {dynamic data, - _i2.Options? options, - _i11.CancelToken? cancelToken}) => + Invocation.method( + #patch, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i10.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #patch, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i10.Future<_i6.Response>); + + @override + _i10.Future<_i6.Response> patchUri( + Uri? uri, { + Object? data, + _i2.Options? options, + _i11.CancelToken? cancelToken, + _i2.ProgressCallback? onSendProgress, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#deleteUri, [uri], - {#data: data, #options: options, #cancelToken: cancelToken}), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i10.Future<_i6.Response>); - @override - _i10.Future<_i6.Response> patch(String? path, - {dynamic data, - Map? queryParameters, - _i2.Options? options, - _i11.CancelToken? cancelToken, - _i2.ProgressCallback? onSendProgress, - _i2.ProgressCallback? onReceiveProgress}) => + Invocation.method( + #patchUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i10.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #patchUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i10.Future<_i6.Response>); + + @override + _i10.Future<_i6.Response> delete( + String? path, { + Object? data, + Map? queryParameters, + _i2.Options? options, + _i11.CancelToken? cancelToken, + }) => (super.noSuchMethod( - Invocation.method(#patch, [ - path - ], { - #data: data, - #queryParameters: queryParameters, - #options: options, - #cancelToken: cancelToken, - #onSendProgress: onSendProgress, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i10.Future<_i6.Response>); - @override - _i10.Future<_i6.Response> patchUri(Uri? uri, - {dynamic data, - _i2.Options? options, - _i11.CancelToken? cancelToken, - _i2.ProgressCallback? onSendProgress, - _i2.ProgressCallback? onReceiveProgress}) => + Invocation.method( + #delete, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + }, + ), + returnValue: _i10.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #delete, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + }, + ), + )), + ) as _i10.Future<_i6.Response>); + + @override + _i10.Future<_i6.Response> deleteUri( + Uri? uri, { + Object? data, + _i2.Options? options, + _i11.CancelToken? cancelToken, + }) => (super.noSuchMethod( - Invocation.method(#patchUri, [ - uri - ], { - #data: data, - #options: options, - #cancelToken: cancelToken, - #onSendProgress: onSendProgress, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i10.Future<_i6.Response>); - @override - void lock() => super.noSuchMethod(Invocation.method(#lock, []), - returnValueForMissingStub: null); - @override - void unlock() => super.noSuchMethod(Invocation.method(#unlock, []), - returnValueForMissingStub: null); - @override - void clear() => super.noSuchMethod(Invocation.method(#clear, []), - returnValueForMissingStub: null); - @override - _i10.Future<_i6.Response> download(String? urlPath, dynamic savePath, - {_i2.ProgressCallback? onReceiveProgress, - Map? queryParameters, - _i11.CancelToken? cancelToken, - bool? deleteOnError = true, - String? lengthHeader = r'content-length', - dynamic data, - _i2.Options? options}) => + Invocation.method( + #deleteUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + }, + ), + returnValue: _i10.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #deleteUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + }, + ), + )), + ) as _i10.Future<_i6.Response>); + + @override + _i10.Future<_i6.Response> download( + String? urlPath, + dynamic savePath, { + _i2.ProgressCallback? onReceiveProgress, + Map? queryParameters, + _i11.CancelToken? cancelToken, + bool? deleteOnError = true, + String? lengthHeader = r'content-length', + Object? data, + _i2.Options? options, + }) => (super.noSuchMethod( - Invocation.method(#download, [ - urlPath, - savePath - ], { - #onReceiveProgress: onReceiveProgress, - #queryParameters: queryParameters, - #cancelToken: cancelToken, - #deleteOnError: deleteOnError, - #lengthHeader: lengthHeader, - #data: data, - #options: options - }), - returnValue: Future<_i6.Response>.value( - _FakeResponse_4())) - as _i10.Future<_i6.Response>); - @override - _i10.Future<_i6.Response> downloadUri(Uri? uri, dynamic savePath, - {_i2.ProgressCallback? onReceiveProgress, - _i11.CancelToken? cancelToken, - bool? deleteOnError = true, - String? lengthHeader = r'content-length', - dynamic data, - _i2.Options? options}) => + Invocation.method( + #download, + [ + urlPath, + savePath, + ], + { + #onReceiveProgress: onReceiveProgress, + #queryParameters: queryParameters, + #cancelToken: cancelToken, + #deleteOnError: deleteOnError, + #lengthHeader: lengthHeader, + #data: data, + #options: options, + }, + ), + returnValue: + _i10.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #download, + [ + urlPath, + savePath, + ], + { + #onReceiveProgress: onReceiveProgress, + #queryParameters: queryParameters, + #cancelToken: cancelToken, + #deleteOnError: deleteOnError, + #lengthHeader: lengthHeader, + #data: data, + #options: options, + }, + ), + )), + ) as _i10.Future<_i6.Response>); + + @override + _i10.Future<_i6.Response> downloadUri( + Uri? uri, + dynamic savePath, { + _i2.ProgressCallback? onReceiveProgress, + _i11.CancelToken? cancelToken, + bool? deleteOnError = true, + String? lengthHeader = r'content-length', + Object? data, + _i2.Options? options, + }) => (super.noSuchMethod( - Invocation.method(#downloadUri, [ - uri, - savePath - ], { - #onReceiveProgress: onReceiveProgress, - #cancelToken: cancelToken, - #deleteOnError: deleteOnError, - #lengthHeader: lengthHeader, - #data: data, - #options: options - }), - returnValue: Future<_i6.Response>.value( - _FakeResponse_4())) - as _i10.Future<_i6.Response>); - @override - _i10.Future<_i6.Response> request(String? path, - {dynamic data, - Map? queryParameters, - _i11.CancelToken? cancelToken, - _i2.Options? options, - _i2.ProgressCallback? onSendProgress, - _i2.ProgressCallback? onReceiveProgress}) => + Invocation.method( + #downloadUri, + [ + uri, + savePath, + ], + { + #onReceiveProgress: onReceiveProgress, + #cancelToken: cancelToken, + #deleteOnError: deleteOnError, + #lengthHeader: lengthHeader, + #data: data, + #options: options, + }, + ), + returnValue: + _i10.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #downloadUri, + [ + uri, + savePath, + ], + { + #onReceiveProgress: onReceiveProgress, + #cancelToken: cancelToken, + #deleteOnError: deleteOnError, + #lengthHeader: lengthHeader, + #data: data, + #options: options, + }, + ), + )), + ) as _i10.Future<_i6.Response>); + + @override + _i10.Future<_i6.Response> request( + String? url, { + Object? data, + Map? queryParameters, + _i11.CancelToken? cancelToken, + _i2.Options? options, + _i2.ProgressCallback? onSendProgress, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#request, [ - path - ], { - #data: data, - #queryParameters: queryParameters, - #cancelToken: cancelToken, - #options: options, - #onSendProgress: onSendProgress, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i10.Future<_i6.Response>); - @override - _i10.Future<_i6.Response> requestUri(Uri? uri, - {dynamic data, - _i11.CancelToken? cancelToken, - _i2.Options? options, - _i2.ProgressCallback? onSendProgress, - _i2.ProgressCallback? onReceiveProgress}) => + Invocation.method( + #request, + [url], + { + #data: data, + #queryParameters: queryParameters, + #cancelToken: cancelToken, + #options: options, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i10.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #request, + [url], + { + #data: data, + #queryParameters: queryParameters, + #cancelToken: cancelToken, + #options: options, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i10.Future<_i6.Response>); + + @override + _i10.Future<_i6.Response> requestUri( + Uri? uri, { + Object? data, + _i11.CancelToken? cancelToken, + _i2.Options? options, + _i2.ProgressCallback? onSendProgress, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#requestUri, [ - uri - ], { - #data: data, - #cancelToken: cancelToken, - #options: options, - #onSendProgress: onSendProgress, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i10.Future<_i6.Response>); + Invocation.method( + #requestUri, + [uri], + { + #data: data, + #cancelToken: cancelToken, + #options: options, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i10.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #requestUri, + [uri], + { + #data: data, + #cancelToken: cancelToken, + #options: options, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i10.Future<_i6.Response>); + @override _i10.Future<_i6.Response> fetch(_i2.RequestOptions? requestOptions) => - (super.noSuchMethod(Invocation.method(#fetch, [requestOptions]), - returnValue: Future<_i6.Response>.value(_FakeResponse_4())) - as _i10.Future<_i6.Response>); - @override - String toString() => super.toString(); + (super.noSuchMethod( + Invocation.method( + #fetch, + [requestOptions], + ), + returnValue: _i10.Future<_i6.Response>.value(_FakeResponse_4( + this, + Invocation.method( + #fetch, + [requestOptions], + ), + )), + ) as _i10.Future<_i6.Response>); } /// A class which mocks [WebSocketChannel]. @@ -401,52 +818,135 @@ class MockWebSocketChannel extends _i1.Mock implements _i7.WebSocketChannel { } @override - _i10.Stream get stream => - (super.noSuchMethod(Invocation.getter(#stream), - returnValue: Stream.empty()) as _i10.Stream); + _i10.Future get ready => (super.noSuchMethod( + Invocation.getter(#ready), + returnValue: _i10.Future.value(), + ) as _i10.Future); + @override - _i7.WebSocketSink get sink => (super.noSuchMethod(Invocation.getter(#sink), - returnValue: _FakeWebSocketSink_5()) as _i7.WebSocketSink); + _i7.WebSocketSink get sink => (super.noSuchMethod( + Invocation.getter(#sink), + returnValue: _FakeWebSocketSink_5( + this, + Invocation.getter(#sink), + ), + ) as _i7.WebSocketSink); + @override - void pipe(_i8.StreamChannel? other) => - super.noSuchMethod(Invocation.method(#pipe, [other]), - returnValueForMissingStub: null); + _i10.Stream get stream => (super.noSuchMethod( + Invocation.getter(#stream), + returnValue: _i10.Stream.empty(), + ) as _i10.Stream); + + @override + void pipe(_i8.StreamChannel? other) => super.noSuchMethod( + Invocation.method( + #pipe, + [other], + ), + returnValueForMissingStub: null, + ); + @override _i8.StreamChannel transform( _i8.StreamChannelTransformer? transformer) => - (super.noSuchMethod(Invocation.method(#transform, [transformer]), - returnValue: _FakeStreamChannel_6()) as _i8.StreamChannel); + (super.noSuchMethod( + Invocation.method( + #transform, + [transformer], + ), + returnValue: _FakeStreamChannel_6( + this, + Invocation.method( + #transform, + [transformer], + ), + ), + ) as _i8.StreamChannel); + @override _i8.StreamChannel transformStream( _i10.StreamTransformer? transformer) => - (super.noSuchMethod(Invocation.method(#transformStream, [transformer]), - returnValue: _FakeStreamChannel_6()) - as _i8.StreamChannel); + (super.noSuchMethod( + Invocation.method( + #transformStream, + [transformer], + ), + returnValue: _FakeStreamChannel_6( + this, + Invocation.method( + #transformStream, + [transformer], + ), + ), + ) as _i8.StreamChannel); + @override _i8.StreamChannel transformSink( _i12.StreamSinkTransformer? transformer) => - (super.noSuchMethod(Invocation.method(#transformSink, [transformer]), - returnValue: _FakeStreamChannel_6()) - as _i8.StreamChannel); + (super.noSuchMethod( + Invocation.method( + #transformSink, + [transformer], + ), + returnValue: _FakeStreamChannel_6( + this, + Invocation.method( + #transformSink, + [transformer], + ), + ), + ) as _i8.StreamChannel); + @override _i8.StreamChannel changeStream( _i10.Stream Function(_i10.Stream)? change) => - (super.noSuchMethod(Invocation.method(#changeStream, [change]), - returnValue: _FakeStreamChannel_6()) - as _i8.StreamChannel); + (super.noSuchMethod( + Invocation.method( + #changeStream, + [change], + ), + returnValue: _FakeStreamChannel_6( + this, + Invocation.method( + #changeStream, + [change], + ), + ), + ) as _i8.StreamChannel); + @override _i8.StreamChannel changeSink( _i10.StreamSink Function(_i10.StreamSink)? change) => - (super.noSuchMethod(Invocation.method(#changeSink, [change]), - returnValue: _FakeStreamChannel_6()) - as _i8.StreamChannel); - @override - _i8.StreamChannel cast() => - (super.noSuchMethod(Invocation.method(#cast, []), - returnValue: _FakeStreamChannel_6()) as _i8.StreamChannel); + (super.noSuchMethod( + Invocation.method( + #changeSink, + [change], + ), + returnValue: _FakeStreamChannel_6( + this, + Invocation.method( + #changeSink, + [change], + ), + ), + ) as _i8.StreamChannel); + @override - String toString() => super.toString(); + _i8.StreamChannel cast() => (super.noSuchMethod( + Invocation.method( + #cast, + [], + ), + returnValue: _FakeStreamChannel_6( + this, + Invocation.method( + #cast, + [], + ), + ), + ) as _i8.StreamChannel); } /// A class which mocks [WebSocketSink]. @@ -458,23 +958,59 @@ class MockWebSocketSink extends _i1.Mock implements _i7.WebSocketSink { } @override - _i10.Future get done => (super.noSuchMethod(Invocation.getter(#done), - returnValue: Future.value()) as _i10.Future); + _i10.Future get done => (super.noSuchMethod( + Invocation.getter(#done), + returnValue: _i10.Future.value(), + ) as _i10.Future); + @override - _i10.Future close([int? closeCode, String? closeReason]) => - (super.noSuchMethod(Invocation.method(#close, [closeCode, closeReason]), - returnValue: Future.value()) as _i10.Future); + _i10.Future close([ + int? closeCode, + String? closeReason, + ]) => + (super.noSuchMethod( + Invocation.method( + #close, + [ + closeCode, + closeReason, + ], + ), + returnValue: _i10.Future.value(), + ) as _i10.Future); + @override - void add(dynamic data) => super.noSuchMethod(Invocation.method(#add, [data]), - returnValueForMissingStub: null); + void add(dynamic data) => super.noSuchMethod( + Invocation.method( + #add, + [data], + ), + returnValueForMissingStub: null, + ); + @override - void addError(Object? error, [StackTrace? stackTrace]) => - super.noSuchMethod(Invocation.method(#addError, [error, stackTrace]), - returnValueForMissingStub: null); + void addError( + Object? error, [ + StackTrace? stackTrace, + ]) => + super.noSuchMethod( + Invocation.method( + #addError, + [ + error, + stackTrace, + ], + ), + returnValueForMissingStub: null, + ); + @override _i10.Future addStream(_i10.Stream? stream) => - (super.noSuchMethod(Invocation.method(#addStream, [stream]), - returnValue: Future.value()) as _i10.Future); - @override - String toString() => super.toString(); + (super.noSuchMethod( + Invocation.method( + #addStream, + [stream], + ), + returnValue: _i10.Future.value(), + ) as _i10.Future); }