Some checks failed
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/chain_gateway Pipeline was successful
ci/woodpecker/push/fx_ingestor Pipeline was successful
ci/woodpecker/push/frontend Pipeline was successful
ci/woodpecker/push/fx_oracle Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
ci/woodpecker/push/ledger Pipeline was successful
ci/woodpecker/push/notification Pipeline was successful
ci/woodpecker/push/payments_orchestrator Pipeline was successful
ci/woodpecker/push/bump_version Pipeline failed
32 lines
816 B
Dart
32 lines
816 B
Dart
import 'package:flutter/foundation.dart';
|
|
|
|
import 'package:pshared/config/constants.dart';
|
|
import 'package:pshared/models/organization/bound.dart';
|
|
|
|
|
|
abstract class PermissionBound extends OrganizationBound {
|
|
String get permissionRef;
|
|
}
|
|
|
|
@immutable
|
|
class _PermissionBoundImp implements PermissionBound {
|
|
@override
|
|
final String permissionRef;
|
|
final OrganizationBound organizationBound;
|
|
|
|
@override
|
|
get organizationRef => organizationBound.organizationRef;
|
|
|
|
const _PermissionBoundImp({
|
|
required this.permissionRef,
|
|
required this.organizationBound,
|
|
});
|
|
}
|
|
|
|
PermissionBound newPermissionBound({
|
|
required OrganizationBound organizationBound,
|
|
String? permissionRef,
|
|
}) => _PermissionBoundImp(
|
|
permissionRef: permissionRef ?? Constants.nilObjectRef,
|
|
organizationBound: organizationBound,
|
|
); |