1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

[add-to-app/books] Added missing class declarations from the pigeon file. (#1385)

This commit is contained in:
gaaclarke
2022-08-29 19:26:49 -07:00
committed by GitHub
parent c006254fec
commit 85fa56b77c

View File

@@ -2,9 +2,22 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'package:flutter_module_books/api.dart';
import 'package:pigeon/pigeon.dart'; import 'package:pigeon/pigeon.dart';
class Book {
String? title;
String? subtitle;
String? author;
String? summary;
String? publishDate;
int? pageCount;
Thumbnail? thumbnail;
}
class Thumbnail {
String? url;
}
@FlutterApi() @FlutterApi()
abstract class FlutterBookApi { abstract class FlutterBookApi {
void displayBookDetails(Book book); void displayBookDetails(Book book);