mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
9 lines
272 B
Dart
9 lines
272 B
Dart
import 'package:np_common/object_util.dart';
|
|
|
|
extension ObjectExtension<T> on T {
|
|
/// Deprecated, use [let]
|
|
U run<U>(U Function(T obj) fn) => let(fn);
|
|
|
|
/// Return if this is contained inside [iterable]
|
|
bool isIn(Iterable<T> iterable) => iterable.contains(this);
|
|
}
|