diff --git a/example/lib/main.dart b/example/lib/main.dart index 7775d9b..c4ec1b6 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -7,7 +7,9 @@ void main() { runApp(const MyApp()); } +/// Example app widget for the plugin. class MyApp extends StatefulWidget { + /// Constructor of MyApp widget. const MyApp({Key key}) : super(key: key); @override diff --git a/lib/receive_intent.dart b/lib/receive_intent.dart index 5a88e0d..58e28c5 100644 --- a/lib/receive_intent.dart +++ b/lib/receive_intent.dart @@ -3,7 +3,16 @@ import 'dart:convert'; import 'package:flutter/services.dart'; +/// Result code indicating that operation succeeded. +/// +/// Same as [`Activity.RESULT_OK`](https://developer.android.com/reference/android/app/Activity#RESULT_OK) +/// but for the Dart world. const kActivityResultOk = -1; + +/// Result code indicating that operation canceled. +/// +/// Same as [`Activity.RESULT_CANCELED`](https://developer.android.com/reference/android/app/Activity#RESULT_CANCELED) +/// but for the Dart world. const kActivityResultCanceled = 0; class Intent {