mirror of https://github.com/flutter/samples.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
574 B
31 lines
574 B
// Copyright 2020 The Flutter team. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
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);
|
|
}
|
|
|
|
@HostApi()
|
|
abstract class HostBookApi {
|
|
void cancel();
|
|
void finishEditingBook(Book book);
|
|
}
|