Pubspec

data class Pubspec(val name: String? = null, val description: String? = null, val version: String? = null, val flutter: PubspecFlutter? = null)

The parsed pubspec.yaml file.

Example:

name: ridiculous_plugin
description: A new flutter plugin project.
version: 0.0.1
homepage: www.my_homepage.com

environment:
sdk: ">=2.16.1 <3.0.0"
flutter: ">=2.5.0"

dependencies:
flutter:
sdk: flutter

dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^1.0.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:
# This section identifies this Flutter project as a plugin project.
# The 'pluginClass' and Android 'package' identifiers should not ordinarily
# be modified. They are used by the tooling to maintain consistency when
# adding or updating assets for this project.
plugin:
platforms:
android:
package: some.company.ridiculous_plugin
pluginClass: RidiculousPlugin
ios:
pluginClass: RidiculousPlugin

assets:
- images/a_dot_burr.jpeg
- images/a_dot_ham.jpeg

Constructors

Link copied to clipboard
constructor(name: String? = null, description: String? = null, version: String? = null, flutter: PubspecFlutter? = null)

Properties

Link copied to clipboard

The Android plugin class name.

Link copied to clipboard
val description: String? = null
Link copied to clipboard
val flutter: PubspecFlutter? = null
Link copied to clipboard

The IOS plugin class name.

Link copied to clipboard
val name: String? = null
Link copied to clipboard

The supported plugin platforms.

Link copied to clipboard

The plugin content.

Link copied to clipboard
val version: String? = null

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard