-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@JS() | ||
library js_textdecoder; | ||
|
||
import 'package:js/js.dart'; | ||
|
||
@JS() | ||
class TextDecoder { | ||
external TextDecoder([String label, TextDecoderOptions options]); | ||
external String decode(dynamic data, [TextDecodeOptions options]); | ||
external String get encoding; | ||
external bool get fatal; | ||
external bool get ignoreBOM; | ||
} | ||
|
||
@JS() | ||
@anonymous | ||
class TextDecoderOptions { | ||
external bool get fatal; | ||
external bool get ignoreBOM; | ||
external factory TextDecoderOptions({bool fatal, bool ignoreBOM}); | ||
} | ||
|
||
@JS() | ||
@anonymous | ||
class TextDecodeOptions { | ||
external bool get stream; | ||
external factory TextDecodeOptions({bool stream}); | ||
} |