1
0
mirror of https://github.com/flutter/samples.git synced 2026-05-28 18:09:04 +00:00

Add flutter_lints (#808)

This commit is contained in:
Brett Morgan
2021-06-09 06:48:39 +10:00
committed by GitHub
parent 6acb879dfa
commit b34cc5671a
6 changed files with 61 additions and 27 deletions

View File

@@ -41,7 +41,7 @@ class Book {
}
abstract class FlutterBookApi {
void displayBookDetails(Book arg);
void displayBookDetails(Book book);
static void setup(FlutterBookApi api) {
{
const BasicMessageChannel<Object> channel = BasicMessageChannel<Object>(
@@ -50,7 +50,7 @@ abstract class FlutterBookApi {
if (api == null) {
channel.setMessageHandler(null);
} else {
channel.setMessageHandler((Object message) async {
channel.setMessageHandler((message) async {
if (message == null) {
return;
}