Arun
Arun

Reputation: 67

#Mark: equivalent in dart/flutter?

I want to categorised method in dart file like in Xcode/Swift we use //MARK: Some Custom String for Quick view .

Also is there any setting in Android Stduio where i can see all method defined in file.

Upvotes: 5

Views: 1589

Answers (2)

Olof
Olof

Reputation: 5338

On Android Studio/IntelliJ you can wrap code with "//region .." and "//endregion":

//region name
~~~Code~~~
//endregion

Upvotes: 0

FDuhen
FDuhen

Reputation: 4826

It depends on the IDE you're using.
On Android Studio / IntelliJ you can use the region comments as explained here

Upvotes: 2

Related Questions