Skip to content

Commit 8e00a69

Browse files
committed
Expose addHook method.
1 parent 400ae9e commit 8e00a69

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/flutter_client_sdk/lib/src/ld_client.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,4 +325,12 @@ interface class LDClient {
325325
await _client.close();
326326
_connectionManager.dispose();
327327
}
328+
329+
/// Add a hook to SDK instance.
330+
///
331+
/// Hooks allow for the addition of SDK observability at specific points
332+
/// of execution.
333+
void addHook(Hook hook) {
334+
_client.addHook(hook);
335+
}
328336
}

0 commit comments

Comments
 (0)