Moshe Dicker
Moshe Dicker
This PR may either be developed to completion or discarded if it doesn't turn out great @simolus3 Check this out. Modular generation aren't working but that is ok for now....
Currently there is no null checking when retrofit works on a request body. https://github.com/trevorwang/retrofit.dart/issues/662 This small refactor separates the process of setting the data variable into 3 parts 1. Declaration:...
**Describe the bug** If you use a nullable property it is not type checked **To Reproduce** ```dart import 'dart:io'; import 'package:dio/dio.dart'; import 'package:retrofit/retrofit.dart'; part 'client_client.g.dart'; @RestApi() abstract class ClientClient {...
**Describe the bug** You cant use `value` as a keyword argument in a endpoint. This is because the generated function declares one internally ``` The final variable 'value' can't be...
🚧 _WIP_ 🚧 ----- The current syntax is as follows: ```dart final listings = await db.managers.listing.withReferences().withProduct().get(); for (var l in listings){ print(l.listingData); print(l.references.product); // Statically type to ProductData? print(l.references.store) //...
It would make more sense to have the top level APIs work on a single item. For example, when deleting a single object, it is much shorter to write ```dart...
```dart // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint, unused_import import 'package:dio/dio.dart'; import 'package:retrofit/retrofit.dart'; import '../models/options.dart'; part 'client_client.g.dart'; @RestApi() abstract class ClientClient { factory...
https://github.com/trevorwang/retrofit.dart/issues/663
Generated ``` // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint, unused_import, invalid_annotation_target import 'package:freezed_annotation/freezed_annotation.dart'; part 'model_c.freezed.dart'; part 'model_c.g.dart'; @Freezed() class ModelC with _$ModelC {...
### Environment `Dart 3.3.3 (stable) (Tue Mar 26 14:21:33 2024 +0000) on "windows_x64"` `sentry_dart_plugin: ^1.6.0` ### Steps to Reproduce 1. Place sentry config in `sentry.properties` instead of pubspec.yaml ### Expected...