flutter_js_asset 0.1.0 flutter_js_asset: ^0.1.0 copied to clipboard
Creates a .dart file containing constants that included javascript code read from specified files by using @TextAsset annotation.
library example;
import 'package:flutter_js_asset/annotations.dart';
part 'example.g.dart';
@TextAsset('asset:example/web/dist/bundle.js')
const String jsCode = $jsCodeContent;