diff --git a/packages/cv/lib/src/cv_model_list.dart b/packages/cv/lib/src/cv_model_list.dart index cbe5705..a816f40 100644 --- a/packages/cv/lib/src/cv_model_list.dart +++ b/packages/cv/lib/src/cv_model_list.dart @@ -16,7 +16,7 @@ List cvNewModelList({bool lazy = true}) => List cvTypeNewModelList(Type type, {bool lazy = true}) => cvEmptyMapList.cvType(type, lazy: lazy); -/// List convenient extensions. +/// `List` convenient extensions. extension CvModelReadListExt on List { /// Convert to model list List toMapList( diff --git a/packages/cv/lib/src/cv_model_mixin.dart b/packages/cv/lib/src/cv_model_mixin.dart index f90fec5..7a28bd8 100644 --- a/packages/cv/lib/src/cv_model_mixin.dart +++ b/packages/cv/lib/src/cv_model_mixin.dart @@ -55,7 +55,7 @@ T? _rawMapGetValueAtPath( return null; } -/// Get a value at a given path - internal, handle CvField, CvModel (toMap), List (toMapList) +/// Get a value at a given path - internal, handle CvField, CvModel (toMap), `List` (toMapList) /// other types are returned as is for now (this might change in the future) T? rawGetValueAtPath(Object rawValue, List parts) { var value = (rawValue is CvField) ? rawValue.v : rawValue; @@ -372,7 +372,7 @@ extension CvModelReadExt on CvModelRead { } /// Get a value at a given path - /// fields value is returned. CvModel/List are converted to map/mapList. + /// fields value is returned. `CvModel/List` are converted to map/mapList. T? valueAtPath(List parts) { var path = parts.first; if (path is String) { diff --git a/packages/cv/lib/src/field.dart b/packages/cv/lib/src/field.dart index 6e9358a..4eb043c 100644 --- a/packages/cv/lib/src/field.dart +++ b/packages/cv/lib/src/field.dart @@ -351,7 +351,7 @@ mixin CvFieldMixin implements CvField { CvField withParent(String parent) => CvFieldWithParentImpl(this, parent); } -/// List helpers +/// `List` helpers extension CvColumnExtension on List { /// Column names. List get names => map((c) => c.name).toList(); diff --git a/packages/cv/lib/src/model.dart b/packages/cv/lib/src/model.dart index ddf9df6..31284a8 100644 --- a/packages/cv/lib/src/model.dart +++ b/packages/cv/lib/src/model.dart @@ -29,7 +29,7 @@ abstract class ModelBase with MapMixin { Object? remove(Object? key) => _map.remove(key); } -/// List class to use as a [List]. +/// List class to use as a `[List]`. class ModelListImpl extends ModelListBase { /// Create a model. If list is null, the model /// is an empty list diff --git a/packages/cv/lib/src/object_ext.dart b/packages/cv/lib/src/object_ext.dart index 897c984..2b791fa 100644 --- a/packages/cv/lib/src/object_ext.dart +++ b/packages/cv/lib/src/object_ext.dart @@ -4,7 +4,7 @@ import 'package:cv/src/map_ext.dart'; /// Global extension on any object. extension ModelRawObjectExt on Object { /// Convert any object to a specific type. - /// Example: anyAs or anyAs or anyAs to support nullable types. + /// Example: `anyAs` or `anyAs` or `anyAs` to support nullable types. T anyAs() { if (this is T) { return this as T; diff --git a/packages/cv/lib/src/utils.dart b/packages/cv/lib/src/utils.dart index 99da317..126b097 100644 --- a/packages/cv/lib/src/utils.dart +++ b/packages/cv/lib/src/utils.dart @@ -207,9 +207,9 @@ Object? _nonNullBasicTypeCastType(Type type, Object value) { /// Handle int, num, double, String, bool /// -/// +/// [bool] /// non 0/null nom value are converted to true -/// , +/// [int], [double] /// num are rounder to int if needed T? basicTypeCast(Object? value) { @@ -222,9 +222,9 @@ T? basicTypeCast(Object? value) { /// Handle int, num, double, String, bool /// -/// +/// [bool] /// non 0/null nom value are converted to true -/// , +/// [int], [double] /// num are rounder to int if needed Object? basicTypeCastType(Type type, Object? value) {