zoo_lints 1.0.1
zoo_lints: ^1.0.1 copied to clipboard
Recommended lints for Flutter apps, packages, and plugins to encourage good coding practices.
example/lib/example.dart
import 'package:zoo_lints/zoo_lints.dart';
Future<void> main() async {
/// Await async functions.
await asyncFunction();
/// Use [unawaited] to indicate that a [Future] is intentionally not awaited.
/// Otherwise you'll get a warning
unawaited(asyncFunction());
}
Future<String> asyncFunction() => Future.value('hello world!');