call method

  1. @useResult
FToastStyle call(
  1. Object? _
)
inherited

Returns itself.

Allows FToastStyle to replace functions that accept and return a FToastStyle, such as a style's copyWith(...) function.

Example

Given:

void copyWith(FToastStyle Function(FToastStyle) nestedStyle) {}

The following:

copyWith((style) => FToastStyle(...));

Can be replaced with:

copyWith(FToastStyle(...));

Implementation

@useResult
FToastStyle call(Object? _) => this as FToastStyle;