Returns an iterator over N elements of the iterator at a time.
The chunks do not overlap. If N does not divide the length of the iterator, then the last up to N-1 elements will
be omitted and can be retrieved from the .intoRemainder() function of the iterator.
An iterator which is a "clone" of the original iterator. Iterating through the original or the clone will not affect the other.
Note: Do not modify the original collection the original Iterable is based on while iterating.
Explanation:
Since Dart Iterators cannot be copied,
Clone replaces the underlying iterator from the Iter provided in the constructor with itself and
collects any first calls to moveNext from any derived iterator.
Due to this, modifications of the original iterable may have
unintentional behavior on the cloned iterator. i.e. the first encounter of an object during iteration will be the one
seen by the derived Iter and all other subsequent Clones.
Therefore if creating a Clone do not modify the original
collection the passed in Iter is based on.
A (half-open) range bounded inclusively below and exclusively above (start..end).
The range contains all values with start <= x < end. It is empty if start >= end.
A range only bounded inclusively below (start..).
Contains all values with x >= start.
Note: This will not overflow, the last value yielded will be the largest possible int _intMaxValue.
A range only bounded exclusively above (..end).
The RangeTo ..end contains all values with x < end.
It cannot be used as an Iterable because it doesn’t have a starting point.
A range only bounded inclusively above (..=end).
The RangeToInclusive ..=end contains all values with x <= end.
It cannot serve as an Iterable because it doesn’t have a starting point.
The root directory component, appears after any prefix and before anything else.
It represents a separator that designates that a path starts from root.
A contiguous sequence of elements in a List. Slices are a view into a list without allocating and copying to a new list,
as such, they do not own their own data.
Note: Shrinking the original list can cause the slices range to become invalid, which may cause an exception or unintended behavior.
Option represents the union of two types - Some<T> and None. As an extension Option$type of T?, Option<T>
has the same runtime cost of T? with the advantage of being able to chain null specific operations.
A platform dependent Path type. Thus, will use windows paths on windows and unix paths on all other platforms.
Path is for handling file paths in a type-safe manner.
This type supports a number of operations for inspecting a path, including breaking the path into its components,
extracting the file name, determining whether the path is absolute, and so on.
A Unix Path.
Path is for handling file paths in a type-safe manner.
This type supports a number of operations for inspecting a path, including breaking the path into its components,
extracting the file name, determining whether the path is absolute, and so on.
A Windows Path.
Path is for handling file paths in a type-safe manner.
This type supports a number of operations for inspecting a path, including breaking the path into its components,
extracting the file name, determining whether the path is absolute, and so on.
Creates a new channel, returning the Sender and LocalClosableReceiver. Each item T sent by the Sender
will only be seen once by the LocalClosableReceiver. Even if the Sender calls close while the LocalClosableReceivers buffer
is not empty, the LocalClosableReceiver will still yield the remaining items in the buffer until empty.
Executes the function in a protected context. func is called inside a try catch block. If the result is not
catch, then return value func returned inside an Ok. If func throws, then the thrown value is returned
inside an Err.
isolateChannel is used for bi-directional isolate communication. The returned
Sender and Receiver can communicate with the spawned isolate and
the spawned isolate is passed a Sender and Receiver to communicate with the original isolate.
Each item T sent by a Sender will only be seen once by the corresponding Receiver.
If the Sender calls close while the Receiver's buffer
is not empty, the Receiver will still yield the remaining items in the buffer until empty.
Types that can be sent over a SendPort, as defined here https://api.flutter.dev/flutter/dart-isolate/SendPort/send.html ,
are allow to be sent between isolates. Otherwise a toIsolateCodec and/or a fromIsolateCodec can be passed
to encode and decode the messages.
A generator over a range by a step size.
If end is not provided, the generated range will be [0..startOrEnd) if startOrEnd > 0, and
nothing is generated otherwise.
If step is not provided, step will be -1 if 0 > startOrEnd and 1 if 0 < startOrEnd.
For reference, it works the same as the python range function.
unreachable([Stringmsg = "This code should be unreachable."])
→ Never
As with Error, Panic represents a state that should never happen and thus is not expected to be catch.
This is closely tied to the unwrap method of both Option and Result types.