Skip to content

Instantly share code, notes, and snippets.

View devoncarew's full-sized avatar

Devon Carew devoncarew

View GitHub Profile
@devoncarew
devoncarew / mandelbrot.dart
Created May 3, 2023 15:46
a sample of converting a wasm module to dart
// Generated from samples/mandelbrot.wasm.
// ignore_for_file: curly_braces_in_flow_control_structures, dead_code
// ignore_for_file: non_constant_identifier_names, unused_element, unused_label
// ignore_for_file: unused_local_variable
import 'package:wasmd/runtime.dart';
import 'package:wasmd/runtime_vm.dart';
/// A class representing the symbols imported from the 'env' module.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
position: relative;

Rule always_declare_return_types

Group: style
State:
Since: Dart SDK: >= 2.0.0 • (Linter v0.1.4)

has-fix

Description

// Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:js_interop';
import 'package:js/js.dart';
@JS()
external HttpClient get httpClient;

directories.dart

Hi! todo: library docs.

Class AppDirs

abstract class AppDirs

If providing this information as part of reporting a bug, please review the above output carefully to ensure it only contains things you're comfortable posting publicly.

General info

  • Dart 2.19.0-edge.53b42f374b88c28bf44443afe26a9bf96d5a5057 (be) (2022-11-15) on "macos_x64"
  • on macos / Version 12.6.1 (Build 21G217)
  • locale is en-US

Project info