nop

Last updated:

0 purchases

nop Image
nop Images
Add to Cart

Description:

nop

Isolate. #
example

part 'isolate_event.g.dart';

@NopServerEvent()
@NopServerEventItem(serverName: 'isolate')
abstract class IsolateEvent implements FirstEvent, SecondEvent, ThirdEvent {}

@NopServerEventItem(serverName: 'first_isolate')
abstract class FirstEvent {
FutureOr<bool?> workStatus();
FutureOr<String?> getBookName(int id);
}

abstract class SecondEvent implements OtherEvents {
Stream<String?> getStream();
}

@NopServerEventItem(
serverName: 'third_isolate', connectToServer: ['first_isolate'])
abstract class ThirdEvent {
// function
}

abstract class OtherEvents {
void doOtherWrok();
}

copied to clipboard
dart run build_runner build --delete-conflicting-outputs
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.