virnavi_common_sdk 0.0.2
virnavi_common_sdk: ^0.0.2 copied to clipboard
Flutter utilities including Either, Optional, ModelStream, Logger, ContextHolder, SnackBarHelper, InternetUtils, RegexHelper, and BaseGetIt.
0.0.2 #
Added #
EmptyModel— placeholder model withtoJson()/fromJson()for operations that succeed without returning data.NoSuchElementExceptionis now exported from the top-level library.- Full API documentation on all public classes and members.
- Comprehensive test suite (34 tests) covering
Either,Optional,EmptyModel,NameFormatHelper,RegexHelper,Logger, andNoSuchElementException.
Changed #
ModelStream— added abstractdispose()method to the base class.NameFormatHelper— removed inline comments from implementation.
0.0.1 #
Added #
- Initial release of
virnavi_common_sdk. - Logger utility with correlation ID support for tracking related log messages across the application.
- Either monad implementation for functional error handling with
LeftandRighttypes. - Optional type for safer null handling with methods like
ifPresent(),orElse(), andorElseThrow(). - ModelStream utilities for converting entity streams to model streams:
ModelStreamImplfor single entity streams.ModelListStreamImplfor list-based entity streams.
- ContextHolder for global access to navigation context, overlay, and navigator state without passing
BuildContext. - InternetUtils for checking internet connectivity using DNS lookup.
- SnackBarHelper for simplified snackbar management with automatic cleanup.
- BaseGetIt abstraction layer over
get_itfor streamlined dependency injection configuration.