lonate 0.0.4 copy "lonate: ^0.0.4" to clipboard
lonate: ^0.0.4 copied to clipboard

A super effective Dart and Flutter library for delivering performant app & ensuring greater build speed.

example/main.dart

import 'package:flutter/foundation.dart';
import 'package:lonate/lonate.dart';

void main() {
  // Function to memorize state
  var clumsysquare = memoize((int x) {
    var result = 0;
    for (var i = 1; i <= x; i++) {
      for (var j = 1; j <= x; j++) {
        result++;
      }
    }
    return result;
  }, [20]);

  debugPrint(clumsysquare());
  int doubled(n) {
    return n * 2;
  }

  int square(n) {
    return n * n;
  }

  var mic = multipleComputation((x, y, a) {
    return [x, y, a];
  }, [square, doubled, square], [9]);

  debugPrint(mic);
}
11
likes
140
pub points
0%
popularity

Publisher

unverified uploader

A super effective Dart and Flutter library for delivering performant app & ensuring greater build speed.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on lonate