How to make reusable ElevatedButton with onPressed property on Flutter
I am trying to make a scalable Button widget using flutter, all the property is working except onPressed which required a VoidCallback data type, what is wrong in here code: // ignore_for_file: public_member_api_docs, sort_constructors_first import 'package:flutter/material.dart'; // ignore: must_be_immutable class…