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

add_to_numbers is a Dart library designed as a starting point for building Dart libraries or applications. With version 1.0.0, this package provides a foundational structure that you can build upon fo [...]

example/add_to_numbers_example.dart

import 'package:add_to_numbers/add_to_numbers.dart';

void main() {
  final adder = AddToNumbers();

  // Example: Adding two positive numbers
  double result1 = adder.addNumbers(5.0, 3.0);
  print('Sum of 5.0 and 3.0: $result1'); // Output: Sum of 5.0 and 3.0: 8.0

  // Example: Adding a positive number and a negative number
  double result2 = adder.addNumbers(10.0, -4.0);
  print('Sum of 10.0 and -4.0: $result2'); // Output: Sum of 10.0 and -4.0: 6.0

  // Example: Adding two zeroes
  double result3 = adder.addNumbers(0.0, 0.0);
  print('Sum of 0.0 and 0.0: $result3'); // Output: Sum of 0.0 and 0.0: 0.0
}
0
likes
140
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

add_to_numbers is a Dart library designed as a starting point for building Dart libraries or applications. With version 1.0.0, this package provides a foundational structure that you can build upon for your own Dart projects. It comes with essential development dependencies such as lints for code quality checks and test for unit testing. The package is compatible with Dart SDK version ^3.4.4 and is licensed under the MIT License.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

More

Packages that depend on add_to_numbers