Use package:web to get HttpStatus

This commit is contained in:
Aran Donohue 2024-12-16 09:17:29 -08:00
parent 6676c20df2
commit 1f40f71013
No known key found for this signature in database
GPG Key ID: EA98761C2C20A998
3 changed files with 3 additions and 2 deletions

View File

@ -13,4 +13,4 @@
// See the License for the specific language governing permissions and
// limitations under the License.
export 'io_bits_io.dart' if (dart.library.html) 'io_bits_web.dart';
export 'io_bits_io.dart' if (dart.library.js_interop) 'io_bits_web.dart';

View File

@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
export 'dart:html' show HttpStatus;
export 'package:web/web.dart' show HttpStatus;
/// Unavailable on the web
class InternetAddress {}

View File

@ -17,6 +17,7 @@ dependencies:
http2: ^2.2.0
protobuf: '>=2.0.0 <4.0.0'
clock: ^1.1.1
web: ^1.1.0
dev_dependencies:
build_runner: ^2.0.0