ASAD HAMEED
ASAD HAMEED

Reputation: 2900

How to show description for widget & it's parameters in flutter?

I'm developing a flutter package wherein I want to add docs for widget's parameters like this,

enter image description here

I'm referring to the description of the widget and it's parameters!

Upvotes: 1

Views: 1039

Answers (1)

MaNDOOoo
MaNDOOoo

Reputation: 1555

You can comment using the ///. For more information, reference the Effective Dart: Documentation#doc-comments.

/// This function is ~~~
///
/// The [num] must be non-null ~~
void simpleFunction(int num) {

}

Upvotes: 4

Related Questions