File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # vgs_flutter
1+ # VGS Flutter
22
3- VGS plugin for Flutter
3+ ## Usage
44
5- ## Getting Started
6-
7- This project is a starting point for a Flutter
8- [ plug-in package] ( https://flutter.dev/developing-packages/ ) ,
9- a specialized package that includes platform-specific implementation code for
10- Android and/or iOS.
11-
12- For help getting started with Flutter, view our
13- [ online documentation] ( https://flutter.dev/docs ) , which offers tutorials,
14- samples, guidance on mobile development, and a full API reference.
5+ ``` dart
6+ final response = await VGSFlutter.send(
7+ data: VGSCollectData(
8+ vaultId: <vault-id>,
9+ sandbox: true,
10+ headers: {
11+ 'Authorization': 'Bearer Token',
12+ },
13+ extraData: VGSExtraData(
14+ query: _query,
15+ variables: {
16+ 'userID': 'USER ID',
17+ 'ssn': '4111111111111111',
18+ },
19+ ),
20+ ),
21+ );
22+ ```
1523
Original file line number Diff line number Diff line change @@ -52,9 +52,9 @@ class _MyAppState extends State<MyApp> {
5252 },
5353 );
5454
55- final data = await VGSFlutter .send (
55+ final response = await VGSFlutter .send (
5656 data: VGSCollectData (
57- vaultId: 'tntmrqf0yk3' ,
57+ vaultId: < vault - id > ,
5858 sandbox: true ,
5959 headers: {
6060 'Authorization' :
@@ -96,7 +96,7 @@ class _MyAppState extends State<MyApp> {
9696 },
9797 );
9898
99- log (data .toString (), name: 'Data ' );
99+ log (response .toString (), name: 'Response ' );
100100 },
101101 ),
102102 );
You can’t perform that action at this time.
0 commit comments