niki_util
A simple utility package for learning Dart package development and publishing to pub.dev. This package was created as a learning project to understand the Dart package ecosystem.
Note: This is a learning/educational package created to understand the package publishing process.
Features
- ✅ Simple math utilities (
NikiMathclass) - ✅ Basic addition operations
- ✅ Clean and simple API
- ✅ Well-documented code
- ✅ Includes examples and tests
Getting started
Add niki_util to your pubspec.yaml:
dependencies:
niki_util: ^1.0.0
Then run:
dart pub get
Usage
Here's a simple example of how to use the niki_util package:
import 'package:niki_util/niki_util.dart';
void main() {
// Create an instance of NikiMath
var math = NikiMath();
// Use the add method
var result = math.add(5, 3);
print('5 + 3 = $result'); // Output: 5 + 3 = 8
// Another example
print('10 + 20 = ${math.add(10, 20)}'); // Output: 10 + 20 = 30
}
For more examples, check out the example folder.
API Documentation
NikiMath
A simple math utility class.
Methods
int add(int a, int b)- Adds two integers and returns the result.
Additional information
Contributing
This is a learning project, but if you'd like to contribute or suggest improvements, feel free to:
- Report issues on the issue tracker
- Submit pull requests
License
This package is released under the MIT License.
Author
Created by Sahil Rana as a learning project to understand Dart package development and the pub.dev publishing process.
Changelog
See CHANGELOG.md for version history.
Libraries
- niki_util
- A simple utility library for learning Dart package development.