Small docs improvements

This commit is contained in:
Simon Binder 2020-04-30 21:28:42 +02:00
parent 81a476662c
commit 195eb0b39b
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
2 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,7 @@ linkTitle: "Moor"
{{< blocks/cover title="Moor: Persistence library for Dart" image_anchor="top" height="med" color="indigo" >}} {{< blocks/cover title="Moor: Persistence library for Dart" image_anchor="top" height="med" color="indigo" >}}
<div class="mx-auto"> <div class="mx-auto">
<a class="btn btn-lg btn-primary mr-3 mb-4" href="{{< relref "/docs" >}}"> <a class="btn btn-lg btn-primary mr-3 mb-4" href="{{< relref "/docs" >}}">
Learn More <i class="fas fa-arrow-alt-circle-right ml-2"></i> Learn moor <i class="fas fa-arrow-alt-circle-right ml-2"></i>
</a> </a>
<a class="btn btn-lg btn-secondary mr-3 mb-4" href="https://pub.dev/packages/moor_flutter"> <a class="btn btn-lg btn-secondary mr-3 mb-4" href="https://pub.dev/packages/moor_flutter">
Get fom pub <i class="fas fa-code ml-2 "></i> Get fom pub <i class="fas fa-code ml-2 "></i>

View File

@ -19,6 +19,8 @@ extension StringExpressionOperators on Expression<String> {
/// Whether this expression contains [substring]. /// Whether this expression contains [substring].
/// ///
/// Note that this is case-insensitive for the English alphabet only.
///
/// This is equivalent to calling [like] with `%<substring>%`. /// This is equivalent to calling [like] with `%<substring>%`.
Expression<bool> contains(String substring) { Expression<bool> contains(String substring) {
return like('%$substring%'); return like('%$substring%');