Mehrzeilig
Bietet bequemen Zugriff auf mehrzeilige String-Datensätze mit Methodenerweiterungen.
- Sterne
- 6
- Forks
- 0
- Letzter Push (UTC)
- 18.08.2022
- Projektstatus
- Aktiv
Original-README
Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.
multiline
About
Provides convenient access to multiline String records with method extensions.
Useful for templates, mockups and SQL queries.
Just use the symbol "|" to indicate the beginning of a line.
Beautiful code formatting using some useful extensions to the String methods.
Available method extensions:
-
multiline()- return formatted with pipeline symbol "|"String. -
multilineSplit()- splits the string and returns aIterable<String>of substrings.
You can use custom "pipeline" and "join" symbols.
For example
import 'package:multiline/multiline.dart'; // <= import package
void main() {
/// Return formatted with pipeline symbol "`|`" [String].
final string =
'''
|/*
| * List of books and the number of
| * authors associated with each book
| */
|SELECT
| `books`.`title` AS `Title`,
| count(*) AS `Authors`
|FROM `books`
|JOIN `authors`
| ON `books`.`isbn` = `authors`.`isbn`
|GROUP BY
| `books`.`title`
|ORDER BY
| `books`.`title` ASC
|;
'''.multiline();
print(string);
/// Splits the string and returns a [Iterable] of substrings.
final iterable =
'''
| * One
| * Two
| * Three
'''.multilineSplit();
iterable.forEach(print);
}
Coverage
Changelog
Refer to the Changelog to get all release notes.
Maintainers
License
Kategorien
Verwendete Abhängigkeiten
Wie wähle ich ein passendes Repository?
Nach Anwendungsfall filtern, Aktivität vergleichen und vor der Nutzung das Originalprojekt prüfen.
- Nach Name, Autor oder Beschreibung suchen und nach Thema eingrenzen.
- Sterne, Forks und letzte Pushes vergleichen. Sterne zeigen Interesse, garantieren aber keine Qualität.
- Vor der Nutzung README, Lizenz und Issues auf GitHub prüfen.
Quellen und Pflege
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗
- PlugFox/multiline · GitHub ↗
- GitHub Docs — Saving repositories with stars ↗
- Verzeichnis gepflegt von Ducafecat ↗
