fixit_core 1.0.1 copy "fixit_core: ^1.0.1" to clipboard
fixit_core: ^1.0.1 copied to clipboard

Core logging, versioning, and event bus utility package for the Fixit Runtime SDK.

example/lib/main.dart

import 'package:fixit_core/fixit_core.dart';

void main() {
  // Logger usage
  final logger = FixitLogger(label: 'example');
  logger.info('Application started');
  logger.warning('This is a warning');
  logger.error('Something went wrong', err: Exception('test'));

  // Event bus usage
  final bus = FixitEventBus();
  bus.stream.listen((event) {
    logger.info('Received event: ${event.name}');
  });
  bus.fire(FixitEvent('user.login', {'userId': 42}));
  bus.dispose();

  // Version info
  logger.info('SDK version: ${FixitVersion.sdk}');
}
2
likes
160
points
167
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Core logging, versioning, and event bus utility package for the Fixit Runtime SDK.

Repository (GitHub)
View/report issues

Topics

#logging #event-bus #utilities

License

MIT (license)

Dependencies

meta

More

Packages that depend on fixit_core