mirror of
https://github.com/pese-git/cherrypick.git
synced 2026-01-23 21:13:35 +00:00
Applied consistent code formatting across all packages using \$ melos format
└> dart format .
└> RUNNING (in 8 packages)
--------------------------------------------------------------------------------
benchmark_di:
Formatted 18 files (0 changed) in 0.30 seconds.
benchmark_di: SUCCESS
--------------------------------------------------------------------------------
cherrypick:
Formatted 24 files (0 changed) in 0.34 seconds.
cherrypick: SUCCESS
--------------------------------------------------------------------------------
cherrypick_annotations:
Formatted 11 files (0 changed) in 0.14 seconds.
cherrypick_annotations: SUCCESS
--------------------------------------------------------------------------------
cherrypick_flutter:
Formatted 3 files (0 changed) in 0.15 seconds.
cherrypick_flutter: SUCCESS
--------------------------------------------------------------------------------
cherrypick_generator:
Formatted 17 files (0 changed) in 0.27 seconds.
cherrypick_generator: SUCCESS
--------------------------------------------------------------------------------
client_app:
Formatted 4 files (0 changed) in 0.14 seconds.
client_app: SUCCESS
--------------------------------------------------------------------------------
postly:
Formatted lib/router/app_router.gr.dart
Formatted 23 files (1 changed) in 0.33 seconds.
postly: SUCCESS
--------------------------------------------------------------------------------
talker_cherrypick_logger:
Formatted 4 files (0 changed) in 0.18 seconds.
talker_cherrypick_logger: SUCCESS
--------------------------------------------------------------------------------
$ melos format
└> dart format .
└> SUCCESS. No functional or logic changes included.
18 lines
696 B
Dart
18 lines
696 B
Dart
/// Base interface for any universal service in the benchmarks.
|
|
///
|
|
/// Represents an object in the dependency chain with an identifiable value
|
|
/// and (optionally) a dependency on a previous service in the chain.
|
|
abstract class UniversalService {
|
|
/// String ID for this service instance (e.g. chain/level info).
|
|
final String value;
|
|
|
|
/// Optional reference to dependency service in the chain.
|
|
final UniversalService? dependency;
|
|
UniversalService({required this.value, this.dependency});
|
|
}
|
|
|
|
/// Default implementation for [UniversalService] used in service chains.
|
|
class UniversalServiceImpl extends UniversalService {
|
|
UniversalServiceImpl({required super.value, super.dependency});
|
|
}
|