niki_util 1.0.0 copy "niki_util: ^1.0.0" to clipboard
niki_util: ^1.0.0 copied to clipboard

A simple utility package for learning Dart package development and publishing. Includes basic math operations and utilities.

example/niki_util_example.dart

import 'package:niki_util/niki_util.dart';

void main() {
  // Create an instance of NikiMath
  var math = NikiMath();

  // Basic addition examples
  print('Example 1: ${math.add(5, 2)}'); // Output: 7
  print('Example 2: ${math.add(10, 15)}'); // Output: 25
  print('Example 3: ${math.add(-5, 3)}'); // Output: -2
  print('Example 4: ${math.add(0, 100)}'); // Output: 100

  // Demonstrating usage in calculations
  var num1 = 42;
  var num2 = 58;
  var sum = math.add(num1, num2);
  print('\n$num1 + $num2 = $sum'); // Output: 42 + 58 = 100
}
0
likes
160
points
6
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A simple utility package for learning Dart package development and publishing. Includes basic math operations and utilities.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on niki_util