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:
@@ -2,9 +2,22 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:flutter_module_books/api.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()
|
||||
abstract class FlutterBookApi {
|
||||
void displayBookDetails(Book book);
|
||||
|
||||
Reference in New Issue
Block a user