pappes_utility 1.0.1 copy "pappes_utility: ^1.0.1" to clipboard
pappes_utility: ^1.0.1 copied to clipboard

outdated

A library useful for console applications or web applications. Currently includes RamCache which is an in memory object store and helper functions like ifNull()

example/pappes_utility.dart

// Copyright (c) 2015, Pappes. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

library pappes_utility.example;

import 'package:pappes_utility/pappes_utility.dart';

main() {
  
  int x=10;
  int y=20;
  x = ifNull(x, y);//use x if it has a value otherwise use y
  
  
  RamCache.remember('MyKey', x);
  print(RamCache.recall('MyKey'));
  RamCache.forget('MyKey');
}
0
likes
0
points
10
downloads

Publisher

unverified uploader

Weekly Downloads

A library useful for console applications or web applications. Currently includes RamCache which is an in memory object store and helper functions like ifNull()

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on pappes_utility