-
Notifications
You must be signed in to change notification settings - Fork 347
/
render_context.dart
61 lines (52 loc) · 1.52 KB
/
render_context.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Copyright 2017 Google Inc. Use of this source code is governed by an
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
import 'package:js/js.dart';
@JS()
@anonymous
class RenderContext {
external RenderContextOptions get options;
external bool? get fromImport;
external factory RenderContext(
{required RenderContextOptions options, bool? fromImport});
}
@JS()
@anonymous
class RenderContextOptions {
external String? get file;
external String? get data;
external String get includePaths;
external int get precision;
external int get style;
external int get indentType;
external int get indentWidth;
external String get linefeed;
external RenderContext get context;
external set context(RenderContext value);
external RenderContextResult get result;
external factory RenderContextOptions(
{String? file,
String? data,
required String includePaths,
required int precision,
required int style,
required int indentType,
required int indentWidth,
required String linefeed,
required RenderContextResult result});
}
@JS()
@anonymous
class RenderContextResult {
external RenderContextResultStats get stats;
external factory RenderContextResult(
{required RenderContextResultStats stats});
}
@JS()
@anonymous
class RenderContextResultStats {
external int get start;
external String get entry;
external factory RenderContextResultStats(
{required int start, required String entry});
}