ContextExtensions extension

Extension on BuildContext to provide additional utility methods.

on

Methods

currentOrientation(dynamic n1, dynamic n2) → dynamic

Available on BuildContext, provided by the ContextExtensions extension

Returns the current orientation based on the provided parameters.
definePlatform(dynamic p1, dynamic p2) → dynamic

Available on BuildContext, provided by the ContextExtensions extension

Determines the platform and returns the appropriate value based on the provided parameters.
horizontalDivider({double? width, double? height, Color? color}) Widget

Available on BuildContext, provided by the ContextExtensions extension

Creates a horizontal divider widget with the specified width, height, and color.
verticalDivider({double? width, double? height, Color? color}) Widget

Available on BuildContext, provided by the ContextExtensions extension

Creates a vertical divider widget with the specified width, height, and color.