PyArgument class sealed

Available extensions
Annotations
  • @freezed

Constructors

PyArgument.bool(bool field0)
const
factory
PyArgument.float(double field0)
const
factory
PyArgument.int(PlatformInt64 field0)
const
factory
PyArgument.listInt(Int64List field0)
const
factory
PyArgument.listStr(List<String> field0)
const
factory
PyArgument.str(String field0)
const
factory

Properties

field0 Object
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult str(PyArgument_Str value), required TResult int(PyArgument_Int value), required TResult float(PyArgument_Float value), required TResult bool(PyArgument_Bool value), required TResult listStr(PyArgument_ListStr value), required TResult listInt(PyArgument_ListInt value)}) → TResult

Available on PyArgument, provided by the PyArgumentPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>({TResult? str(PyArgument_Str value)?, TResult? int(PyArgument_Int value)?, TResult? float(PyArgument_Float value)?, TResult? bool(PyArgument_Bool value)?, TResult? listStr(PyArgument_ListStr value)?, TResult? listInt(PyArgument_ListInt value)?}) → TResult?

Available on PyArgument, provided by the PyArgumentPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>({TResult str(PyArgument_Str value)?, TResult int(PyArgument_Int value)?, TResult float(PyArgument_Float value)?, TResult bool(PyArgument_Bool value)?, TResult listStr(PyArgument_ListStr value)?, TResult listInt(PyArgument_ListInt value)?, required TResult orElse()}) → TResult

Available on PyArgument, provided by the PyArgumentPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>({TResult str(String field0)?, TResult int(PlatformInt64 field0)?, TResult float(double field0)?, TResult bool(bool field0)?, TResult listStr(List<String> field0)?, TResult listInt(Int64List field0)?, required TResult orElse()}) → TResult

Available on PyArgument, provided by the PyArgumentPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult str(String field0), required TResult int(PlatformInt64 field0), required TResult float(double field0), required TResult bool(bool field0), required TResult listStr(List<String> field0), required TResult listInt(Int64List field0)}) → TResult

Available on PyArgument, provided by the PyArgumentPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>({TResult? str(String field0)?, TResult? int(PlatformInt64 field0)?, TResult? float(double field0)?, TResult? bool(bool field0)?, TResult? listStr(List<String> field0)?, TResult? listInt(Int64List field0)?}) → TResult?

Available on PyArgument, provided by the PyArgumentPatterns extension

A variant of when that fallback to returning null

Operators

operator ==(Object other) bool
The equality operator.
inherited