forked from flutter/packages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprimitive.dart
35 lines (32 loc) · 1.1 KB
/
primitive.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright 2013 The Flutter Authors. 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';
@HostApi()
abstract class PrimitiveHostApi {
int anInt(int value);
bool aBool(bool value);
String aString(String value);
double aDouble(double value);
// ignore: always_specify_types, strict_raw_type
Map aMap(Map value);
// ignore: always_specify_types, strict_raw_type
List aList(List value);
Int32List anInt32List(Int32List value);
List<bool?> aBoolList(List<bool?> value);
Map<String?, int?> aStringIntMap(Map<String?, int?> value);
}
@FlutterApi()
abstract class PrimitiveFlutterApi {
int anInt(int value);
bool aBool(bool value);
String aString(String value);
double aDouble(double value);
// ignore: always_specify_types, strict_raw_type
Map aMap(Map value);
// ignore: always_specify_types, strict_raw_type
List aList(List value);
Int32List anInt32List(Int32List value);
List<bool?> aBoolList(List<bool?> value);
Map<String?, int?> aStringIntMap(Map<String?, int?> value);
}