James D. Lin

Results 49 issues of James D. Lin
trafficstars

The Dart SDK exports `HttpStatus` constants for both `dart:io` and `dart:html`. Actually using them in a platform-agnostic way is not particularly straightforward and is awkward. Since one of the purposes...

type-enhancement
package:http

I expected that `Characters.operator ==` would compare normalized forms, but it doesn't. (See https://stackoverflow.com/q/64094438/.) If it intentionally doesn't, it would be nice if the [`operator ==` documentation](https://pub.dev/documentation/characters/latest/characters/Characters/operator_equals.html) explicitly stated that...

type-documentation

It's unclear from the `README.md` whether WyzeHacks is expected to work for v1 cameras; "v1" is mentioned only for the uninstall instructions. I tried using the SD card install approach,...

### Describe the problem Now that the Dart API documentation supports query-string searches, I can create a keyword search in my browser so that typing `dart QUERY` is automatically expanded...

type-infra

In addition to https://github.com/dart-lang/api.dart.dev/issues/53, something else to consider is to make it easy to navigate across versions from within the documentation pages themselves. That would improve the situation for all...

Running `dartfmt` on: ```dart void main() { try { print('hi'); } on Error catch (e) { // ignore: avoid_catching_errors print('bye'); } } ``` generates: ```dart void main() { try {...

rare
difficult
safe
meh

Since Dart conditional imports/exports are a thing, has there been much consideration to making `package:fixnum` offer different implementations of `Int32`/`Int64` for the Dart VM than for the web? For the...

type-enhancement

The documentation for `Int32` and `Int64` state: > Arithmetic operations may overflow in order to maintain this range. but doesn't explain what the overflow behavior is. Does it wrap around?...

Two people on StackOverflow coincidentally today got confused by the error message about `provideDummy`/`provideDummyBuilder`: * https://stackoverflow.com/questions/77205684/#comment136107698_77205684 * https://stackoverflow.com/q/77206987/ The API documentation for [`provideDummy`](https://pub.dev/documentation/mockito/latest/mockito/provideDummy.html) and for [`provideDummyBuilder`](https://pub.dev/documentation/mockito/latest/mockito/provideDummyBuilder.html) could be improved: *...

Based on a report from StackOverflow: https://stackoverflow.com/q/71830050/ Given code: ```dart import 'package:cross_file/cross_file.dart'; import 'package:mockito/annotations.dart'; import 'xfile_test.mocks.dart'; class Cat {} @GenerateMocks([XFile]) void main() { var mockXFile = MockXFile(); print(mockXFile is XFile);...