docs: some API docs

This commit is contained in:
Harsh Bhikadia 2022-07-21 11:42:34 +05:30
parent dec10b2a83
commit 2b1a420fbd
2 changed files with 11 additions and 0 deletions

View file

@ -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

View file

@ -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 {