ReceiveWhatsappChat<T extends StatefulWidget> class
abstract
I used Duarte Silveira share package. See: https://github.com/d-silveira/flutter-share. We could not use his package because we needed to perform changes and it wasn't sound null safety. There is a credit to him and there will be throughout the whole package.
Constructors
Properties
- context → BuildContext
-
The location in the tree where this widget builds.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- mounted → bool
-
Whether this State object is currently in a tree.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Can Receive the chat or not
getter/setter pair
- widget → T
-
The current configuration.
no setterinherited
Methods
-
activate(
) → void -
Called when this object is reinserted into the tree after having been
removed via deactivate.
inherited
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
inherited
-
deactivate(
) → void -
Called when this object is removed from the tree.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
didChangeDependencies(
) → void -
Called when a dependency of this State object changes.
inherited
-
didUpdateWidget(
covariant T oldWidget) → void -
Called whenever the widget configuration changes.
inherited
-
disableReceivingChatWithMedia(
) → void - Disable shareReceiveEnabled
- Disable the receiving
-
dispose(
) → void -
Called when this object is removed from the tree permanently.
inherited
-
enableReceivingChatWithMedia(
) → void -
Enable
_allowReceiveWithMedia
to save the images paths - Enable the receiving
-
initState(
) → void -
We need to enable shareReceiveEnabled at first
override
-
isWhatsAppChatUrl(
String url) → bool - Check if the url is a WhatsApp chat url
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reassemble(
) → void -
Called whenever the application is reassembled during debugging, for
example during hot reload.
inherited
-
receiveChatContent(
ChatContent chatContent) → void - Abstract function calling after we receive and analyze the chat
-
Calling the
methodChannel.invokeMethod
and receive List<String> as a result. Sent it to analyze at ChatAnalyzer.analyze. Calling an abstract function receiveChatContent with ChatContent variable. - In iOS WhatsApp sends us a zip file. We need to unzip the file, read it and sent it to the ChatAnalyzer.analyze
-
setState(
VoidCallback fn) → void -
Notify the framework that the internal state of this object has changed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- methodChannel → const MethodChannel
- Method Channel methodChannel for analyzing the chat
- stream → const EventChannel
- Stream stream for listener