You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Create an instance of your SDK with initialization parameters
@@ -600,6 +602,19 @@ void main() async {
600
602
}
601
603
```
602
604
605
+
### Project structure
606
+
607
+
```
608
+
my_sdk/
609
+
├── src/
610
+
│ └── sdk.ts
611
+
├── lib/
612
+
│ └── sdk_access.dart
613
+
│ └── sdk_source.dart
614
+
├── pubspec.yaml
615
+
├── package.json
616
+
```
617
+
603
618
The `@globe/dart_source_generator` automatically generates the SDK wrapper class with type-safe methods that handle all the Dart FFI interop boilerplate. You simply call methods and get properly typed `Future` or `Stream` objects back.
604
619
605
620
For more details, see the [@globe/dart_source_generator documentation](https://www.npmjs.com/package/@globe/dart_source_generator) and [@globe/runtime_types documentation](https://www.npmjs.com/package/@globe/runtime_types).
0 commit comments