at_flusort 0.0.3 copy "at_flusort: ^0.0.3" to clipboard
at_flusort: ^0.0.3 copied to clipboard

A supporting package providing sorting algorithms for usages in Flutter.

example/example.dart

// ignore_for_file: avoid_print

import 'package:at_flusort/at_flusort.dart';

void main() {
  final intList = [5, 2, 9, 1];
  final doubleList = [3.14, 2.71, 1.41, 2.0];
  final stringList = ['banana', 'apple', 'cherry'];
  final dateList = [
    DateTime(2023, 5, 1),
    DateTime(2022, 12, 31),
    DateTime(2024, 1, 1)
  ];

  print('BubbleSort<int>: ${BubbleSort<int>().sort(intList)}');
  print('SelectionSort<double>: ${SelectionSort<double>().sort(doubleList)}');
  print('InsertionSort<String>: ${InsertionSort<String>().sort(stringList)}');
  print('MergeSort<DateTime>: ${MergeSort<DateTime>().sort(dateList)}');
}
1
likes
150
points
40
downloads

Publisher

unverified uploader

Weekly Downloads

A supporting package providing sorting algorithms for usages in Flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (license)

Dependencies

flutter

More

Packages that depend on at_flusort