Skip to content

Commit

Permalink
[web] ByteLength is not intended to support on web
Browse files Browse the repository at this point in the history
  • Loading branch information
liplum committed May 2, 2024
1 parent 864f74f commit 043c323
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/utils/byte_io.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import 'dart:convert';
import 'dart:typed_data';

import 'package:flutter/foundation.dart';

enum ByteLength {
bit8(1, 0xFF),
bit16(2, 0xFFFF),
bit32(4, 0xFFFFFFFF),
bit64(8, 0xFFFFFFFFFFFFFFFF),
bit8(1, kIsWeb ? 0 : 0xFF),
bit16(2, kIsWeb ? 0 : 0xFFFF),
bit32(4, kIsWeb ? 0 : 0xFFFFFFFF),
bit64(8, kIsWeb ? 0 : 0xFFFFFFFFFFFFFFFF),
;

final int byteLengths;
Expand Down

0 comments on commit 043c323

Please sign in to comment.