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

outdated

A super effective Dart and Flutter library for delivering performante 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
0
pub points
0%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on lonate