pedantic 1.10.0-nullsafety copy "pedantic: ^1.10.0-nullsafety" to clipboard
pedantic: ^1.10.0-nullsafety copied to clipboard

discontinuedreplaced by: lints
outdated

The Dart analyzer settings and best practices used internally at Google.

example/example.dart

import 'package:pedantic/pedantic.dart';

void main() async {
  // Normally, calling a function that returns a Future from an async method
  // would require you to ignore the unawaited_futures lint with this analyzer
  // syntax:
  //
  // ignore: unawaited_futures
  doSomethingAsync();

  // Wrapping it in a call to `unawaited` avoids that, since it doesn't
  // return a Future. This is more explicit, and harder to get wrong.
  unawaited(doSomethingAsync());
}

Future<void> doSomethingAsync() async {}
526
likes
0
points
950k
downloads

Publisher

verified publishergoogle.dev

Weekly Downloads

The Dart analyzer settings and best practices used internally at Google.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on pedantic