Block class

Inheritance

Constructors

Block(Function function)
Creating a Block from a Function.
factory
Block.fromPointer(Pointer<Void> ptr, {Function? function})
Creating a Block from a Pointer.

Properties

debugDescription String
Returns a string that describes the contents of the receiver for presentation in the debugger.
no setteroverride
description String
Returns a string that describes the contents of the receiver.
no setteroverride
function Function?
getter/setter pair
hash int
Returns an integer that can be used as a table address in a hash table structure.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
isa Class?
This isa block in iOS, but it's meaningless for a block created by Dart function.
no setteroverride
pointer Pointer<Void>
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sequence int
getter/setter pair
shouldReturnAsync bool
getter/setter pair
superclass Class
Superclass for block in iOS, meaningless for a block created by Dart function.
no setteroverride
typeEncodingsPtrPtr Pointer<Pointer<Utf8>>
getter/setter pair
types List<String>
getter/setter pair

Methods

conforms({required Protocol to}) bool
Returns a Boolean value that indicates whether the receiver conforms to a given protocol.
inherited
copy() Block?
Copy a new Block by calling Block_copy function.
invoke([List? args]) → dynamic
Invoke the Block synchronously.
isEqual(NSObjectProtocol object) bool
Returns a Boolean value that indicates whether the receiver and a given object are equal.
inherited
isKind({required Class of}) bool
Returns a Boolean value that indicates whether the receiver is an instance of given class or an instance of any class that inherits from that class.
inherited
isMember({required Class of}) bool
Returns a Boolean value that indicates whether the receiver is an instance of a given class.
inherited
isProxy() bool
Returns a Boolean value that indicates whether the receiver does not descend from NSObject.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
perform(SEL selector, {List? args, DispatchQueue? onQueue}) Future
Sends a specified message to the receiver asynchronously using onQueue. onQueue is DispatchQueue.main by default.
inherited
performSync<T>(SEL selector, {List? args, bool decodeRetVal = true}) → T
Sends a specified message to the receiver and returns the result of the message.
inherited
responds({required SEL to}) bool
Returns a Boolean value that indicates whether the receiver implements or inherits a method that can respond to a specified message.
inherited
self() NSObjectProtocol
Returns the receiver.
inherited
toString() String
A string representation of this object.
inherited

Operators

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