This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extension ForEachIndexedExtension<E> on List<E> { | |
| /// Returns a new eagerly computed [List] with elements of type [T] that are created by | |
| /// calling `f` on each element of this `List` with elements of type [E] in order of increasing index. | |
| /// | |
| /// `f` exposes the index and the element at that index. | |
| /// | |
| /// ___________ | |
| /// For example: | |
| /// | |
| /// ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/widgets.dart'; | |
| /// Conditionally wrap a subtree with a parent widget without breaking the code tree. | |
| /// | |
| /// [condition]: the condition depending on which the subtree [child] is wrapped with the parent. | |
| /// [child]: The subtree that should always be build. | |
| /// [conditionalBuilder]: builds the parent with the subtree [child]. | |
| /// | |
| /// ___________ | |
| /// Usage: |
NewerOlder